Unless your work contract or verbal agreement between you and your employer says otherwise, the length of your notice depends on how long you’ve worked for your employer:
Less than one month: No notice legally required
One month to two years: One week’s notice
Two years or more: One week’s notice for each year you’ve worked for your employer, but only up to 12 weeks