update daysInMonth