This means you have to have been employed for a continuous period of at least 26 weeks before the qualifying week, which is the 15th week before your baby is due to be born. If you don't qualify for SMP, you may get Maternity Allowance instead.