Fix edge case in calculating gregorian buckets from a date range