Payroll Date Calculator

Days between dates, probation and notice end dates, working days and retirement dates, counted the way payroll counts them.

Dates

📅 Result

Choose the dates, then select Calculate.
📅

Counting both days

For leave, loss of pay, notice served and service, both the first and the last day count: 28 March to 3 April is 7 days. Untick the option to count only the gap.

📆

The month-end rule

When a day does not exist in the result month, its last day is used: one month from 31 January is 28 February, or 29 in a leap year.

⏳

Notice in months

Two months from 15 January ends on 14 March. Two months and 60 days are not the same over February.

🎂

Retirement age

An age is attained on the day before the birthday, so someone born on the 1st of a month retires at the end of the previous month.

How each calculation works

Counting the days between two dates

Most payroll date errors are exactly one day out, and the cause is nearly always the same: whether the first and the last day are both counted. Payroll counts both. An employee absent from 28 March to 3 April has 7 days of loss of pay, not 6, because 28 March and 3 April are each a day the employee did not work. Leave, attendance, notice served and service length all follow the same rule. Counting only the gap, which gives 6, is the right answer to a different question: how many days after the first date the second one falls.

Service length is the same count expressed in years, months and days, which is how gratuity, full and final settlement and long-service policies read it. Someone who joined on 1 March 2021 and left on 15 December 2025 served 4 years, 9 months and 15 days, counting both days. For gratuity, that final part-year of more than six months matters, and so do the days in it, because 240 days worked in the fifth year makes service count as five years.

Calendar quirks change the count more often than expected. February has 28 days, or 29 in a leap year such as 2028, so a period running across February is shorter than the same dates in another month. Months of 30 and 31 days also change how many days a "month" holds when a period starts and ends mid-month.

The result also shows how many Sundays and Saturdays fall in the range. That is a quick check before working out payable days, because the weekly offs inside an absence decide whether those days are treated as leave without pay under your policy.

Adding days, months and years to a date

Probation ends, confirmation dates, contract renewals and fixed-term end dates are all found by adding a period to a start date, and most of them are written in months. Adding months is where spreadsheets and quick mental arithmetic go wrong, because months have different lengths.

The calculator keeps the day of the month whenever that day exists in the result month. Six months from 15 March is 15 September. When the day does not exist, it moves to the last day of that month: one month from 31 January is 28 February, or 29 February in a leap year, and six months from 31 August is 28 or 29 February too. This is the same month-end rule HR systems and most contracts use, and the result shows when it has been applied.

Whether the start date counts as day one changes the answer by a day. A six-month probation from a joining date of 1 April ends on 30 September if 1 April is the first day of probation, and on 1 October if the six months are added in full. Contracts usually mean the first, so the option to count the start date as day one is there for exactly that case.

Adding days counts calendar days, including Sundays and holidays. A 90-day contract from 1 January ends on 31 March, or on 1 April when the start date is not counted as day one, whatever weekly offs fall in between. If a policy counts working days instead, the working days tab gives that answer.

Subtracting works the same way in reverse. It is useful for back-dating, such as finding the date on which an employee completed one year before a given day, or the latest joining date that still qualifies for an annual bonus.

Working out the last working day of a notice period

A notice period sets the last working day, and two choices in the policy decide it: whether notice starts on the day of resignation or the day after, and whether the period is counted in days or in months.

When notice starts on the resignation date, that date is day one. A 60-day notice from 12 November 2026 then ends on 10 January 2027. When it starts the next day, everything moves one day later. Many appointment letters say "with effect from the date of resignation", which points to the first reading, but the letter decides.

Notice in months is counted to the day before the same date of the final month. Two months from 15 January ends on 14 March. When the start date does not exist in the final month, the month-end rule applies, so one month from 31 January ends on 28 February. Payroll teams often treat "two months" and "60 days" as the same, but over February they can differ by two or three days.

Days the employee has already served, or days the employer waives or settles by a notice payment, bring the last working day forward. Enter them in the optional field, and the date moves earlier by that many days. The result also shows the weekday of the last working day, because a notice period ending on a Sunday or a holiday is still a valid last working day under most policies, but the relieving letter and the full and final settlement date should match it.

The number of notice days actually served is what the shortfall recovery in a full and final settlement is based on. A shortfall is usually recovered at the daily rate the appointment letter names, on wages or on gross salary.

Counting working days between two dates

Working days are the calendar days in a period minus the weekly offs and the holidays. Payroll needs this number for attendance-based pay, for converting an absence into loss-of-pay days under a working-day policy, and for checking that a timesheet total is possible for the month.

Weekly offs differ between employers, so the calculator offers the four common patterns: Sundays only; Sundays with the second and fourth Saturdays; Sundays with the first and third Saturdays; and both Saturdays and Sundays. The second Saturday is the one falling between the 8th and the 14th of the month and the fourth between the 22nd and the 28th, whatever weekday the month starts on. November 2026, for example, has five Sundays and its second and fourth Saturdays fall on the 14th and the 28th.

Holidays are entered one per line as DD-MM-YYYY. A holiday that falls on a weekly off is counted once, as a weekly off, so it does not reduce the working days twice. Dates that cannot be read are listed, so nothing is silently dropped.

The working-day count is not the divisor for every salary calculation. Salary proration and loss of pay usually divide the monthly salary by the calendar days of the month, by a fixed 30 or by 26, as the policy states, and not by working days. Working days matter where pay itself is earned per day worked, as with daily-rated staff, or where a policy defines leave and loss of pay in working days.

For a period crossing two months, the count runs across both months as one range. If payroll is processed month by month, run each month separately, so each month's working days match that month's attendance sheet.

Finding the retirement date

Retirement dates are set by the retirement age in the employer's policy, commonly 58 or 60, and by one point of law that is easy to miss: a person attains an age on the day before the birthday, not on the birthday. The Supreme Court settled this in Prabhu Dayal Sesma v. State of Rajasthan (1986), and payroll and service records follow it.

Under the most common rule, the employee retires on the last day of the month in which the retirement age is attained. Central Government employees retire this way under FR 56, and many companies have copied it. Someone born on 15 December 1968 attains 58 on 14 December 2026 and retires on 31 December 2026. Someone born on 1 December 1968 attains 58 on 30 November 2026, so the month of attaining the age is November, and they retire on 30 November 2026, a month earlier than a quick reading of the birthday would suggest. That is why staff born on the 1st of a month always retire at the end of the previous month.

Some employers retire employees on the day the age is attained instead. The calculator offers both rules, and shows the birthday, the date the age is attained and the retirement date, so the reasoning can be checked against the policy.

The result also shows how long remains until retirement from today. That figure drives succession planning, the timing of the final gratuity and leave encashment, and the cut-off for employer contributions that stop at retirement.

The date of birth should be the one in the service record, usually from the matriculation certificate or another document accepted at joining. Policies rarely allow a change of recorded date of birth close to retirement, so the date in the records is the one that counts.

Common mistakes

Counting the gap instead of the days

28 March to 3 April is 7 days when both days count, as for leave, loss of pay and service. Subtracting the dates gives 6, which is one day short.

Treating a month as 30 days

Adding 30 days to 31 January gives 2 March; adding one month gives 28 February. Probation and notice written in months follow the month-end rule, not a fixed day count.

Starting the notice on the wrong day

Whether notice starts on the resignation date or the day after moves the last working day by one day. Follow the wording of the appointment letter.

Taking the 2nd Saturday as the second weekend

The second Saturday is the one between the 8th and the 14th of the month, and the fourth is between the 22nd and the 28th, whatever weekday the month starts on.

Counting a holiday on a Sunday twice

A holiday that falls on a weekly off is already a non-working day. Subtracting it again understates the working days.

Retiring on the birthday

A person attains an age on the day before the birthday. Someone born on 1 December 1968 attains 58 on 30 November 2026 and, under the month-end rule, retires on 30 November 2026, not 31 December.

Frequently asked questions

Are both the start date and the end date counted?

For leave, loss of pay, notice served and service length, yes. 28 March to 3 April counts as 7 days. The option to count both days is on by default, and turning it off gives the gap between the dates instead.

What is one month from 31 January?

28 February, or 29 February in a leap year. When the day of the start date does not exist in the result month, the last day of that month is used. The result shows when this month-end rule has been applied.

When does a 60-day notice period end?

When notice starts on the resignation date, that date is day one. A 60-day notice from 12 November 2026 ends on 10 January 2027. When it starts the day after, the last working day moves one day later.

How are the 2nd and 4th Saturdays found?

By the date, not by counting weekends: the 2nd Saturday falls between the 8th and the 14th, and the 4th between the 22nd and the 28th. In November 2026 they are the 14th and the 28th.

When does an employee born on the 1st of a month retire?

At the end of the previous month, under the rule of retiring on the last day of the month in which the age is attained. The age is attained on the day before the birthday, which falls in the previous month.