Guides Dates and time

How to Calculate Age, Date Differences and Working Days

Exact age, days between dates, leap years, month-end quirks and working-day counts, with worked examples.

Date arithmetic looks easy until you try it. How old is someone born on 14 August 1998 on 26 October 2026, in years, months and days? How many days are there between two dates, and should the first and last days be counted? How many working days remain before a deadline once weekends and holidays are removed? Job applications, visa forms, notice periods, loan terms, school admissions and project plans all depend on getting these answers right.

This guide explains the methods behind age and date calculations, the traps that cause mistakes and how to count working days reliably.

Calculating exact age

Age is counted in completed years, then completed months, then remaining days.

Example: born 14 August 1998; age on 26 October 2026.

  1. Years. The birthday in 2026, 14 August, has already passed, so the person has completed 2026 − 1998 = 28 years.
  2. Months. From 14 August 2026 to 14 October 2026 is 2 complete months.
  3. Days. From 14 October to 26 October is 12 days.

The age is 28 years, 2 months and 12 days. Counted another way, the person has lived 10,300 days. The Age Calculator gives every form of the answer at once.

If the birthday has not yet come round this year, subtract one from the year difference. Someone born on 30 December 1998 is still 27 on 26 October 2026.

Borrowing days at month ends

When the day of the month you are counting to is smaller than the birth day, you borrow days from the previous month, just as in subtraction. Born 25 March 2000, on 10 June 2026: the years are 26; from 25 March to 25 May is 2 months; from 25 May to 10 June is 16 days: 6 days to the end of May, which has 31 days, plus 10 days in June. Months of 28, 29, 30 and 31 days are why age calculators are more reliable than mental arithmetic.

Age "as on" a closing date

Recruitment advertisements often set age limits "as on" a particular date, usually the closing date. The calculation is the same, but the end date is the one in the advertisement, not today. Read the wording carefully: "not more than 30 years" and "under 30 years" can lead to different results for someone who turns 30 just before the closing date, and many organisations publish relaxations for certain groups. If you are close to the limit, check the official interpretation rather than relying on your own reading.

Days between two dates

Subtracting dates gives the number of days from one to the other. From 1 November 2026 to 10 November 2026 is 9 days. But if both the first and last days count, as with a 10-day leave application from the 1st to the 10th, the answer is 10.

  • Exclusive counting, the plain difference, suits ages, time elapsed and countdowns.
  • Inclusive counting, the difference plus one, suits leave, event durations, hotel bookings counted in days and medication courses.

Hotels count nights, not days: arriving on the 1st and leaving on the 4th is 3 nights. The Days Between Dates tool lets you include or exclude the end date so the answer matches the question.

Leap years

A year has 366 days if it is a leap year. The rule has three parts:

  1. A year divisible by 4 is a leap year,
  2. except a year divisible by 100, which is not,
  3. except a year divisible by 400, which is.

So 2000 was a leap year, 1900 was not, 2100 will not be, and 2024 and 2028 are. Any calculation that spans 29 February gains a day, which matters for interest, rent and day counts over long periods.

People born on 29 February have a birthday only every four years. In other years, the legal date for turning a certain age differs by country, typically either 28 February or 1 March, so official deadlines are worth checking.

Adding months is not the same as adding days

Adding one month to 15 January gives 15 February. But adding one month to 31 January has no perfect answer, because February has no 31st. Most software and contracts use the last day of the month, 28 or 29 February; some roll over into March. A notice period of "one month" from 31 January and a notice period of "30 days" from the same date end on different days. When a contract or policy matters, check which rule it uses. The Date Calculator adds or subtracts days, weeks, months and years, and the Months Between Dates tool counts complete months.

Counting working days

Working days, also called business days, usually exclude Saturdays, Sundays and public holidays.

Example: November 2026 has 30 days. The 1st is a Sunday, and counting Monday to Friday gives 21 working days in the month, before any holidays are removed.

Example with a holiday: December 2026 has 23 weekdays. Quaid-e-Azam Day on 25 December falls on a Friday that year, leaving 22 working days for offices in Pakistan that close on that day.

Three complications are common:

  • Weekend patterns differ. Some offices, banks and schools work on Saturdays, and some countries use a Friday-Saturday weekend. Use the pattern that applies to the organisation involved.
  • Holidays move. Islamic holidays follow the lunar calendar and are confirmed by moon sighting, so Eid holidays may be announced only shortly before. Leave a margin for deadlines near them.
  • Start and end days. Decide whether the day an instruction is received counts as day one.

The Business Days Calculator lets you choose the weekend days and add your own list of holidays.

Hijri dates

The Islamic calendar is lunar. Its months last 29 or 30 days, so a Hijri year has 354 or 355 days, about 11 days fewer than a solar year. That is why Ramadan and both Eids arrive about 11 days earlier each year in the Gregorian calendar. Converters such as the Hijri Date Converter give calculated dates, but the official start of a month in Pakistan depends on moon sighting, which can differ from the calculation by a day.

Deadlines and time of day

A deadline of 30 November may mean midnight at the start of the day, 5 pm when an office closes or 11:59 pm on an online portal, and online systems may run on a different time zone from yours. When a deadline matters, check the stated time and time zone, and aim to finish a day early. The Days Until countdown helps keep the remaining time visible.

School admissions and minimum ages

Schools, colleges and sports clubs often set a minimum or maximum age on a fixed cut-off date, for example the start of the academic year. A child born a few days after the cut-off may have to wait a full year to join a class, while one born a few days before can join with children almost a year older. When applying, calculate the child's exact age on the institution's stated cut-off date rather than on the day you fill in the form, and keep a copy of the birth certificate or B-form ready, because admissions offices check the date against official records.

Common mistakes

  • Forgetting whether the birthday has passed. Year subtraction alone can be one year too high.
  • Mixing inclusive and exclusive counts. Decide which the question needs before calculating.
  • Ignoring leap days in long periods. They add up over decades.
  • Treating one month as 30 days. Months vary, and contracts may define them differently.
  • Assuming everyone has the same weekend and holidays. Confirm the calendar of the organisation involved.

Privacy

The date calculators on this site run entirely in your browser. Birth dates and other dates you enter are not sent to us or stored.

Free tools used in this guide