Bugfix where next time wasn't calculated right at day change