Fixes the endofmonth check for months with < 31 days