Wouldn't it be easier to follow if you just changed this line to:
`(resultMonth == 3 || resultMonth == 5 || resultMonth == 8 || resultMonth == 10)`

as it does the same thing. It is not like the number of days in a month changes.