Create a new date from another date using javascipt and variables

I have javascript that will take the current date (date A) and add 5 days to it (date B).

I'm trying to create a new date (date C) that takes date B then adds 1 month and removes 1 day.

I can add/remove days/months from the current day, but can't seem to figure out how to call date B into my javascript to add/remove from THAT result.

Is this possible?

1 Reply