fix seven day mileage calculation