i thot the pay is calculated as (no. of working day u did) divide by (no. of official working day in the month) times (ur last drawn monthly salary)???
so leave any day u like, but choose the month with the least working day. (and also remember, public holiday is not considered as working day)