Calculate next day cutoff correctly
Merge pull request #184 from chajadan/DoNotStartNewDayEarly

Looks good!