Calculating flight duration