Time, Date, Navigation & Astronomy Date Math & Business Calendars Fliegel–Van Flandern Julian Day Number

Age in Days, Hours & Minutes Calculator

Enter a date of birth and this calculator returns the exact elapsed time to any reference date: total days, weeks, hours, minutes and seconds, plus a conventional years-months-days age. It also tells you the calendar date on which a milestone day count falls, so you can find the day you turn 10,000 days old. The arithmetic runs through Julian Day Numbers, which converts every date to a single integer first, so leap years and month lengths are handled by construction rather than by counting on your fingers.

Calculator

This calculator runs in your browser. Enable JavaScript for live results — the inputs, formula and worked example below remain fully readable without it.

Inputs this calculator takes, with typical values
InputWhat to enterExample
Birth yearFour-digit year on the birth certificate. Gregorian calendar only.1990
Birth monthMonth number, 1 for January through 12 for December.6
Birth dayDay of the month; a day beyond the month's length is clamped and flagged.15
Birth hourHour on a 24-hour clock; leave at 0 if you do not know the time of birth.8
Birth minuteMinutes past the hour on the birth record.30
Reference yearThe date you are measuring to — today, or any past or future date.2026
Reference monthMonth number of the reference date, 1 through 12.8
Reference dayDay of the month of the reference date.2
Reference hourClock hour at the reference date, in the same time zone as the birth time.12
Milestone day countA whole number of days after birth whose calendar date you want, such as 10,000.10000

It returns

  • Total days lived — Elapsed time in days, including the fractional part from the clock times.
  • Age in years, months and days — The conventional calendar age, counted by whole calendar months.
  • Total weeks
  • Total hours
  • Total minutes
  • Total seconds
  • Date of the milestone day count — The calendar date exactly that many days after the date of birth.

The formula

T=86400(JDN2JDN1)+(s2s1)
JDN=1461(Y+4800+a)4+367(M212a)123(Y+4900+a)/1004+D32075

In plain text: T = 86400·(JDN₂ − JDN₁) + (s₂ − s₁); days = T / 86400

  • TTotal elapsed time (seconds)
  • JDN₁, JDN₂Julian Day Numbers of the birth date and the reference date (integer days)
  • s₁, s₂Seconds elapsed since midnight on each of the two dates (seconds)

The Julian Day Number is a continuous integer count of days used by astronomers since 1849, so the difference of two of them is the day count with no month-length or leap-year bookkeeping left to do.

Updated Category Date Math & Business Calendars Verified against published test cases Reading time 10 min

What a day count measures that a birthday does not

Your age in years is a rounded-down count of calendar anniversaries. Your age in days is an exact physical quantity: the number of Earth rotations between two instants. The two answer different questions. "How old are you?" wants the anniversary count. "How many days have I been alive?" wants the elapsed count, and the two drift apart in a way you can feel — a person who is 40 years old has lived somewhere between 14,610 and 14,611 days depending on how many 29 Februaries fell inside that span.

Day counts matter outside novelty. Neonatal and paediatric dosing is often written in days or weeks of life rather than years. Clinical trials record time-on-treatment in days. Actuaries, pension administrators and immigration caseworkers count exact days because a rule that says "183 days of physical presence" cannot be satisfied approximately. Sports scientists and demographers use decimal age — days divided by 365.2425 — because a continuous variable behaves properly in a regression while a stepped integer year does not.

This calculator gives you both. The headline figure is the exact elapsed day count between two moments, and the years-months-days figure beside it is the conventional calendar age, computed the way a registrar would: whole calendar months, borrowing days from the preceding month when the day of the month has not yet come round.

The formula: turn both dates into one integer first

Counting days between calendar dates directly is miserable because months have four different lengths and February has two. The professional trick is to stop working in the calendar. Convert each date to a Julian Day Number — a single integer that counts days continuously from a zero point in 4713 BC — and then simply subtract. Every irregularity in the calendar is absorbed by the conversion.

The conversion used here is the Fliegel–Van Flandern algorithm, published in Communications of the ACM in 1968. Its cleverness is the term a, which is −1 for January and February and 0 for every other month. That single substitution shifts the year so that it begins in March, which puts the leap day at the end of the shifted year instead of in the middle of it. Once February 29 is the last day of the year, the length of every preceding month is a fixed pattern, and the whole thing collapses into three floor divisions.

Read the terms in order. ⌊1461(Y + 4800 + a)/4⌋ counts days in whole Julian years, because 1461 = 4 × 365 + 1 — that is the Julian rule of one leap day every four years. ⌊367(M − 2 − 12a)/12⌋ reproduces the 31/30/31/30/31 month pattern of the March-based year; 367/12 = 30.583, which advances the right number of days per month. −⌊3⌊(Y + 4900 + a)/100⌋/4⌋ is the Gregorian correction: it removes three leap days every four centuries, which is exactly the rule that centuries are not leap years unless divisible by 400. The final −32075 just sets the epoch.

Clock times ride on top. Each moment is expressed as seconds since midnight, and the difference of the two is added to 86,400 times the day difference. Because Coordinated Universal Time inserts leap seconds, a strictly correct elapsed-seconds count between 1972 and today would be a few dozen seconds longer than 86,400 per day. This calculator, like almost all civil software, uses the POSIX convention that every day contains exactly 86,400 seconds.

Worked example: born 15 June 1990 at 08:30, measured at noon on 2 August 2026

Work the two Julian Day Numbers by hand.

  1. Birth date, 1990-06-15. June is month 6, so a = 0. First term: 1461 × (1990 + 4800) / 4 = 1461 × 6790 / 4 = 9,920,190 / 4 = 2,480,047 after flooring. Second term: 367 × (6 − 2) / 12 = 1468 / 12 = 122. Third term: ⌊(1990 + 4900)/100⌋ = 68, then ⌊3 × 68 / 4⌋ = 51. So JDN = 2,480,047 + 122 − 51 + 15 − 32,075 = 2,448,058.
  2. Reference date, 2026-08-02. August is month 8, a = 0. First term: 1461 × 6826 / 4 = 9,972,786 / 4 = 2,493,196 after flooring. Second term: 367 × 6 / 12 = 2202 / 12 = 183. Third term: ⌊6926/100⌋ = 69, then ⌊207/4⌋ = 51. JDN = 2,493,196 + 183 − 51 + 2 − 32,075 = 2,461,255.
  3. Whole days. 2,461,255 − 2,448,058 = 13,197 days.
  4. Clock correction. Birth at 08:30 is 30,600 seconds after midnight; the reference at 12:00 is 43,200 seconds. The difference is +12,600 seconds, or 12,600 / 86,400 = 0.14583 days.
  5. Total. T = 86,400 × 13,197 + 12,600 = 1,140,233,400 seconds, which is 13,197.1458 days, 1,885.31 weeks, 316,731.5 hours and 19,003,890 minutes.
  6. Calendar age. 2026 − 1990 = 36 years; August minus June is 2 months; day 2 is earlier in the month than day 15, so borrow: subtract one month and add the 31 days of July, giving 2 − 15 + 31 = 18 days and one month less. The registrar's answer is 36 years, 1 month, 18 days.

Sanity-check the day count independently: 36 years of 365 days is 13,140, and the leap days falling inside the span (1992, 1996, 2000, 2004, 2008, 2012, 2016, 2020, 2024 — nine of them) bring it to 13,149. Add the 48 days from 15 June to 2 August and you get 13,197. The two routes agree.

How to read the number, and which milestones are real

Divide the day count by 365.2425 to get decimal age in years. That divisor is the mean length of the Gregorian year — 365 days plus 97 leap days per 400 years — and it is the right constant to use whenever you convert a span of several years. Using 365 instead overstates decimal age by about 0.07%, which is a week over a lifetime; using 365.25 is fine for spans shorter than a century but wrong by three days per 400 years.

The milestone counts people actually celebrate are 10,000 days (27.379 years, so it lands about four months after the 27th birthday) and 1 billion seconds (11,574.07 days, or 31.69 years). Both are worth checking against the calculator rather than assuming: because the 10,000-day mark is offset from a birthday by roughly 138 days, its calendar date depends on where the leap days fall in your particular span, and it moves by a day for people born a few years apart.

If you are using the figure clinically or legally, decide first whether your rule counts elapsed days or calendar days. A tax residency test counting "days present" usually counts any day on which you were present for any part of it, which is the calendar-date difference plus one. This calculator reports elapsed days — the difference — so add one if your rule is inclusive of both endpoints.

Milestone day counts and where they fall

Day counts converted to years at 365.2425 days per year, and the date each milestone falls on for someone born 1 January 2000.
Days livedYears (÷ 365.2425)Date reached, born 2000-01-01
1,0002.7382002-09-27
5,00013.6892013-09-09
10,00027.3792027-05-19
15,00041.0692041-01-25
20,00054.7582054-10-04
25,00068.4482068-06-12
30,00082.1372082-02-19

The dates are specific to a 1 January 2000 birth date. Enter your own date above; the calculator rebuilds this table for you, because the leap days inside your span are not the same ones.

Mistakes that put a day count out

  • Mixing time zones between the two moments. If the birth time is recorded in one zone and you enter a reference time in another, the elapsed total is wrong by the offset. Convert both to the same zone first with the time zone converter.
  • Treating the anniversary and the day count as interchangeable. Four consecutive years contain 1,461 days, not 1,460, so a fixed multiplier never reproduces the exact count.
  • Using 365.25 for long spans. That is the Julian year. Over 400 years it drifts three days from the Gregorian calendar, which is precisely the drift the 1582 reform was designed to remove.
  • Entering a date before the Gregorian reform. The conversion here assumes the Gregorian calendar throughout. For dates before October 1582, or in countries that adopted the reform later, use the Julian option in the day of the week calculator to see how far the two calendars have diverged.
  • Expecting leap seconds. Twenty-seven leap seconds have been inserted since 1972, and this calculator ignores every one of them, as does every civil clock. If you need TAI-accurate elapsed seconds, add them from the IERS bulletin.

Where this sits among the other date tools

Julian Day Numbers are the backbone of nearly every date calculation on this site. The Unix timestamp converter uses the same integer, shifted so that 1 January 1970 is zero and scaled to seconds; POSIX time is literally 86,400 × (JDN − 2,440,588) plus the seconds of the day. The day of the week calculator exploits the fact that the JDN modulo 7 is the weekday, since the count never skips. The leap year calculator exposes the rule that the Gregorian correction term in the formula above implements.

If you want the elapsed time between two clock times on the same day rather than between dates, the time duration calculator is the right tool, and it handles spans that cross midnight. If you want to sum several separate durations, use the add and subtract time calculator.

One historical note worth having: the Julian Day system is named after Julius Caesar Scaliger, the father of the scholar Joseph Scaliger who proposed it in 1583, not after the Julian calendar. Scaliger picked 4713 BC because it is the year in which three independent cycles — the 28-year solar cycle, the 19-year Metonic lunar cycle and the 15-year Roman indiction — all coincide, which pushes the epoch safely before any date a historian would need. Astronomers adopted it because it makes the interval between two observations a subtraction rather than a research project.

Frequently asked questions

How many days old am I if I am 30 years old?

Between 10,957 and 10,958 days, depending on how many 29 Februaries fell inside your particular 30 years. Thirty years of 365 days is 10,950; a 30-year span always contains seven or eight leap days, so the total lands on 10,957 or 10,958. Enter your exact date of birth above to see which. The general conversion is days = years × 365.2425.

When will I be 10,000 days old?

About 27 years and 4.5 months after you were born. Ten thousand days divided by the mean Gregorian year of 365.2425 days is 27.379 years, so the milestone falls roughly 138 days after your 27th birthday. The exact calendar date depends on which leap years fall inside your span, so it is not the same date offset for everyone — enter your birth date and read the milestone output.

Does this calculator include the day I was born?

No. It reports elapsed time, so the day of birth counts as zero and the first birthday is day 365 or 366. If your rule counts both the first and last day — many tax residency and visa tests do — add one to the total. Check the wording of the rule you are applying, because "days present" and "days elapsed" differ by exactly one.

Why do the hours and minutes matter?

They only matter if you want a fractional day count or a genuine seconds total. Leaving both times at 00:00 gives you the whole-day difference between the two calendar dates, which is what most people want. Filling in a birth time from the birth certificate makes the seconds figure real rather than nominal, and shifts the fractional part of the day count by up to 0.999 days.

What is a Julian Day Number?

It is a continuous integer count of days that astronomers have used since 1849, running from a zero point of 1 January 4713 BC in the proleptic Julian calendar. Its value is that it has no months, no years and no leap rules — the interval between any two dates is a subtraction. Today's value is around 2,461,000. It is unrelated to the Julian calendar despite the shared name.

Can I use this for dates before 1582?

Not reliably. The calculator applies the Gregorian rule to every date, which means dates before the October 1582 reform are treated as proleptic Gregorian rather than as the Julian dates they were actually written as. For a date recorded in a historical document, first decide which calendar the writer used. Britain and its colonies did not adopt the Gregorian calendar until 1752, and Russia not until 1918.

How many seconds are in a billion-second life?

One billion seconds is 11,574.074 days, or 31.69 years — you pass it roughly eight months after your 31st birthday. Divide 1,000,000,000 by 86,400 to get the days, then by 365.2425 to get the years. Enter 11574 as the milestone day count above to get the calendar date of the day it falls in.

Why is my years-months-days age different from days ÷ 365?

Because calendar months are not equal. The years-months-days figure counts whole calendar anniversaries and then borrows days from the month before the reference date, which is how registrars and courts express age. Dividing days by 365 produces a decimal that ignores month boundaries entirely and drifts by about a quarter of a day per year against the anniversary count.

References

  • Fliegel, H. F. and Van Flandern, T. C., "A Machine Algorithm for Processing Calendar Dates", Communications of the ACM 11(10), 1968 — Association for Computing Machinery
  • Explanatory Supplement to the Astronomical Almanac, 3rd edition (calendars and Julian date conversion) — University Science Books / U.S. Naval Observatory
  • ISO 8601-1:2019, Date and time — Representations for information interchangeInternational Organization for Standardization