The distance between London and Madrid is 1273 km. If an airplane travels at an average velocity of 502.4 km/h, how long will the trip take?