When is the best time to go on maternity leave?

Maria
I'm a mom to be and 6 months pregnant. I'm due on the 18th of Feb. I read that babies don't usually come on their due date so I was thinking to work at least 2 weeks before my due date if possible. I think I only get 12 weeks of maternity leave.