remove unused variable `year` from `date/totalDaysInMonth`. closes #207