if statements for flight times