Neglecting the air resistance, the time of flight of a projectile is determined by
Uvertical
Uhorizontal
U=U2vertical+U2horizontal
U=U(U2vertical+U2horizontal)12
Time of flight = 2u sin θg=2uyg=2×uverticalg