using days in month instead of hardcoded year lengths #747