Returns a number of the next month.
int nextMonth(DateTime date) { final month = date.month; return month == DateTime.monthsPerYear ? 1 : month + 1; }