Fixed an issue with calculating the flight time