Question: how long do you have to work for a company for maternity leave?
Answer: work for your employer for 26 weeks up to the 15th week before your baby is due - the 26 weeks includes time when you're on maternity leave.