The hang time of a projectile can be calculated solely by knowing the vertical component of the velocity of projection
This is because all projectiles with the same vertical component of velocity are in flight for the same time. This is possible only if we are able to find the vertical component of velocity and the flight time with the given information.