solve o + d * t + p = 0 for t