Toolbox

A formula sheet plus reference tools for calculator, equation solver, units, elements, graphs and molecules.

Toolbox · Time and date calculator

Time and date calculator

Add days, hours and minutes to a moment to get the result across months and years, or measure the gap between two moments and check leap years.

Formula
t2=t1+Δt,Δt=t2−t1t_2 = t_1 + \Delta t,\quad \Delta t = t_2 - t_1
The result is the start plus the duration; the gap between two moments is the end minus the start.

Write moments as year-month-day hour:minute, for example 2026-10-24 08:00; a bare date counts as midnight.

Presets
Result2026-11-23 10:15
WeekdayMonday
Day of year327
Days in month30
Leap yearno
Days30
Hours2
Minutes15
Total minutes43335
Start
2026-10-24 08:00
Start weekday
Saturday
Crosses a month
yes
Crosses a year
no
Steps
4 / 4
  1. 1Formula
    t2=t1+30 d+2 h+15 mint_2 = t_1 + 30\ \text{d} + 2\ \text{h} + 15\ \text{min}

    Add the days to the date and carry the hours and minutes separately.

  2. 2Units
    30 d=720 h=43200 min30\ \text{d} = 720\ \text{h} = 43200\ \text{min}

    Bring both moments onto the same base of days and minutes.

  3. 3Solve
    t2=2026−11−2310:15t_2 = 2026-11-23 10:15

    Repeat the same steps to reach the result.

  4. 4Check
    43335 min43335\ \text{min}

    Check whether the carry rolls into the next hour, day, month or year.

Concept

Dates cannot be counted in 30-day months: January, March, May, July, August, October and December have 31 days, April, June, September and November have 30, and February has 28 or 29.

A year is leap when it is divisible by 4 but not by 100, or when it is divisible by 400. So 2000 was leap and 1900 was not.

Going further

Measuring a gap
Convert both moments to one base, such as minutes since midnight of a fixed day, subtract, then split the total back into days, hours and minutes.

Common mistakes

  • For a problem that crosses months, sketch a timeline with the key dates first.
  • The number of days elapsed is a difference, while the day of the year is a position counted from January the first.
Page keywordsdate calculatortime differenceelapsed timeleap yeardays between two datesadd days to a datehow to check a leap yeartime across monthsdays in a yeartime unit conversion
AI DO LEARN

Science, made explorable.

5 Disciplines·6 Levels·647 Knowledge points

© 2026 AI DO LEARN. All rights reserved.

Original explanations, diagrams and code may not be republished without permission; please credit the source when quoting.