Calculate length of service from start and end dates, or as of a reference date, in days or years, months and days for any date range.

Optional settings


Related Calculators

Calculator Functions

FunctionWhat it doesWhat it requires
Service between datesFinds the length of service between a start date and an end date in years, months and daysRequires the start date and the end date
End date from daysFinds the date that falls a set number of days of service after a start dateRequires the start date and the length of service in elapsed days
Start date from daysFinds the start date that gives a set number of days of service by an end dateRequires the end date and the length of service in elapsed days
Service as of dateFinds the length of service from a start date up to any chosen date, such as today or a planned retirement dateRequires the start date and the as-of date

Every result also shows the total days, total months, total weeks, the years as a decimal and the date range. The end date itself is not counted as a day of service, so a start and end on the same date is 0 days.

Length of Service Formulas

D = E โˆ’ S
DLength of service in elapsed days
EEnd date or as-of date
SStart date

Service between dates

The years, months and days are counted on the calendar. Whole months are counted forward from the start date, twelve months make a year, and the days left over after the last whole month are the remaining days. From January 1, 2018 to June 30, 2022 is 4 years, 5 months, 29 days, or 1,641 days. When the start day does not exist in a later month, such as the 31st, the last day of that month is used. An end date earlier than the start date is rejected.

Years of service

Years = D รท 365.2425

The decimal figure divides the elapsed days by the average length of a calendar year, and total weeks is D รท 7. The 1,641 days above are 4.49 years or 234.4 weeks. A full year of service is complete on the same date as the start date: a start on July 26, 2001 reaches 25 years, 0 months, 0 days on July 26, 2026.

End date from days

E = S + D

A start on January 1, 2024 plus 90 days of service gives March 31, 2024.

Start date from days

S = E โˆ’ D

An end date of December 31, 2025 less 365 days of service gives a start on December 31, 2024.

Service as of date

This is the same count as Service between dates, with the as-of date in place of the end date. A start on September 29, 2003 measured as of October 14, 2020 is 17 years, 0 months, 15 days. The as-of date is whatever is entered and does not move forward by itself on later visits.

Limits of This Estimate

  • The count covers one unbroken period. For service with a break, work out each period separately and add the days, counting any overlapping dates once.
  • The end date is not counted. Where a policy counts both the first and the last day, add one day for each period.
  • Employer, pension and government rules decide which periods count as qualifying or creditable service and how leave is treated. The plan administrator has the official total.