Question 1156377
isolate the t
(1/2)gt^2+ut-S=0
it's a quadratic
t=[-u+/-sqrt(u^2+2gS)]/g

notice a is 1/2
b is u
c is -S