May as well remove the if to save bytes `breakAtEnd = daycount > lastday`