Functional Weave
Code in Python

payroll.notice-period@1.0.1

README.md

2,499 bytes · view raw

# payroll.notice-period

The statutory minimum notice for ending a contract of employment in Great
Britain, from the Employment Rights Act 1996 s.86:

| Continuous service on the day notice is given | Employer must give | Employee must give |
|---|---|---|
| under one month | no statutory minimum (0) | no statutory minimum (0) |
| one month to under two years | 1 week | 1 week |
| two years to under twelve years | 1 week per completed year | 1 week |
| twelve years or more | 12 weeks | 1 week |

Service is measured with hr.length-of-service up to and including the day
notice is given, so the extra week arrives on the anniversary itself.

A contract can give longer notice, never shorter; this returns only the
statutory floor. It does not cover summary dismissal for gross misconduct,
payment in lieu, or s.86(4) (fixed-term contracts of a month or less treated
as indefinite after three months' service). Northern Ireland has its own
equivalent legislation and is not covered.

Source: Employment Rights Act 1996 s.86, "Rights of employer and employee to
minimum notice", https://www.legislation.gov.uk/ukpga/1996/18/section/86.

## Before you rely on this

**Not professional advice.** This capability calculates payroll figures from published rules. It is a software component for developers, not tax or legal advice. Rules change and every rate here has an effective date. Check that the dates cover your case. Verify results against the official sources listed above, and have a payroll specialist review how you use it, before anyone relies on the output. Provided "as is" under its licence, without warranty.

**Unreviewed.** This capability's implementations agree in every language and pass its published test vectors, which were worked out from the official sources cited. But no qualified payroll specialist has yet checked those vectors, or confirmed that the capability covers the cases it claims. Treat it as a draft. Do not use it for real people, money or decisions without your own expert review. Once a qualified reviewer signs off, this notice is replaced with their name, qualification and the date. Each new version needs fresh sign-off.

## Notices

Contains public sector information licensed under the Open Government
Licence v3.0 (https://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/).

Legislation: Crown copyright and database right.

1.0.1 marks it unreviewed and adds its attribution notices (NOTICE). The code and the tests are unchanged.