Reworked parseMonthRange.