creates method to calculate flight mileage