How it works
This calculator evaluates the displayed equation variants locally in your browser. Enter the known values; results are shown for equations whose required inputs are available.
Check units, assumptions and professional guidance before using results for medical, financial, legal, engineering or safety-critical decisions.
Formulas used by this calculator
The Age Calculator works with 42 quantities and 7 relations between them. Enter the values you know, leave the one you want to find blank, and press Calculate. Blank fields are never treated as zero. Each formula below is solved for one quantity.
- Total End (
totalEnd) = end_date + end_time
- End time (
end_time) = -end_date + totalEnd
- End date (
end_date) = -end_time + totalEnd
- Total Start (
totalStart) = birth_time × include_time + start_date
- Include time (
include_time) = (-start_date + totalStart)/birth_time
- Start date (
start_date) = -birth_time × include_time + totalStart
- Birth time (
birth_time) = (-start_date + totalStart)/include_time
Inputs
| Field | Name in formulas | Can be solved for |
| Days Diff | daysDiff | Input only |
| End date | end_date | Yes |
| End time | end_time | Yes |
| Next Diff | nextDiff | Input only |
| Next Year | nextYear | Input only |
| Total End | totalEnd | Yes |
| Diff in h | diff_in_h | Input only |
| Diff in s | diff_in_s | Input only |
| Years Diff | yearsDiff | Input only |
| Birth time | birth_time | Yes |
| Diff in ms | diff_in_ms | Input only |
| Months Diff | monthsDiff | Input only |
| Start date | start_date | Yes |
| Total Start | totalStart | Yes |
| Current Date | currentDate | Input only |
| Diff in min | diff_in_min | Input only |
| Result unit | result_unit | Input only |
| Diff in days | diff_in_days | Input only |
| Include time | include_time | Yes |
| Next Birthday | nextBirthday | Input only |
| Next Diff Days | nextDiffDays | Input only |
| Next Year Diff | nextYearDiff | Input only |
| Date Of Current | dateOfCurrent | Input only |
| Date Of End Date | dateOfEndDate | Input only |
| Diff in weeks | diff_in_weeks | Input only |
| Diff in years | diff_in_years | Input only |
| Next Diff Hours | nextDiffHours | Input only |
| Year Of Current | yearOfCurrent | Input only |
| Year Of End Date | yearOfEndDate | Input only |
| Diff in months | diff_in_months | Input only |
| Month Of Current | monthOfCurrent | Input only |
| Month Of End Date | monthOfEndDate | Input only |
| Date Of Start Date | dateOfStartDate | Input only |
| Next Diff Minutes | nextDiffMinutes | Input only |
| Next Diff Seconds | nextDiffSeconds | Input only |
| Year Of Start Date | yearOfStartDate | Input only |
| Month Of Start Date | monthOfStartDate | Input only |
| Next Year Birthday | nextYearBirthday | Input only |
| Next Year Diff Days | nextYearDiffDays | Input only |
| Next Year Diff Hours | nextYearDiffHours | Input only |
2 more inputs are available in the calculator form.
Limitation: 15 of the 22 underlying relations rely on lookup tables or helper routines that run only on the original source calculator, so this page skips them. Quantities that depend on those relations are not solved here.