Fix bug with helper logic for weekly mileage chart