calculate gas for trip