Fix errors with next day at the end of month