Time of flight and height of a projectile