Make sure we query the entire day when filtering by date
Make totals calculation work again