A tennis ball machine fires a ball vertically upward at time t=0 at 19.6 m/s. Assume that air resistance is negligible and take g=9.8 m/s^2.

and then what?

h(t) = 19.6t - 4.9t^2
now work your magic.