What about in the case of daylight savings? Do you need to add an extra hour?
Daylight savings time switches happen in the middle of the night, IIRC at 2am or 3am.
A month ends at the end of a day, regardless of the length of that day or any other day during the month.
The OP's request was to make it simpler.
With time, you often can't do that without edge cases.