Gas mileage and mathematical operations