As mentioned study your MC compensation rules, especially outside of regular salary.
With my MC, there were specific rules around vesting of the 401k match. It was done quarterly, and you had to be employed on the last day of the quarter to receive the match. Bonuses and annual profit share also paid in February. HSA contribution (from the MC) for the year in January.
Essentially added up to close to 50% of annual comp getting loaded in 3 months. For my MC, benefits ended on midnight the last day of employment, not end of that month. But the full month's vacation accrual loaded on Day1.
So my plan was to amp up my contributions to my 401k to put in the max annual allowable from Jan-March, receive above bene's, and turn in my notice on 4/1.
(As it turned out I ended up getting all the above, and a RIF with a package for staying till June 10.)