Calculation now based on gas prices for each leg of the trip. Documentation needed but it's late and I'm tired.