changes the flightTime condition in the "if" ad > = 22 and <= 6