Fix days in month calculation for the desktop date input control
There's two issues here:
- we need to start with the next month if we go one day back to get to the last day, otherwise we are always one months off
- the function arguments were swapped
There's two issues here: