Bug 1078243 - [Costcontrol] When the Starting day of the reset period is...

... 31th, the app does not calculated correctly the end of the reset period.
Useless and dangerous. If the flow progress through this block then `newMonth` and `newYear` will be undefined and the line 84 will fail.