how much maternity do you get? That would be counted in how long you work at the company even if you leave at the end. so that should buy you some more time.
i need to be there for a certain number of years not including leave...so maternity would not be factored into the equation. Any leave I took i would have to make up in order to qualify.