How soon did you go on maternity leave?

So I'm a high risk pregnancy because I'm gestational diabetic and have asthma which I've been hospitalized for during this pregnancy. I was wondering how soon do you working moms plan on taking maternity leave?