The height of the ball at time $t$ is given by the formula $$h(t) = v_0 t - \frac{gt^2}{2}$$ where $v_0$ is the initial velocity.