Improved mileage calculation with support for partial fillups