The height of a projectile thrown vertically with an initial velocity u from an initial height x0 is given by
h(t) = -(1/2) g t2 + u t + x0
Below is shown the simulation of a projectile thrown vertically where different values of u and x0 can be entered and the path (in red) as well as the change of h in terms of the time t are displayed.
Input values for u and x0 and press "start/restart" button.