Quitting before or after maternity leave

Kelly

I plan on leaving my job to stay at home. I’m a year away from finishing my masters and know that if I work full time, have a baby and go to school it would be too much for me.

Would you quit before or after maternity leave? I want to leave on good terms.