Search for a tool
Calculation with Dates

Tool to make calculation with dates. Date can be computed with additions or subtractions of days, weeks, months or years with a given date.

Results

Calculation with Dates -

Tag(s) : Date and Time

Share
Share
dCode and more

dCode is free and its tools are a valuable help in games, maths, geocaching, puzzles and problems to solve every day!
A suggestion ? a feedback ? a bug ? an idea ? Write to dCode!


Please, check our dCode Discord community for help requests!
NB: for encrypted messages, test our automatic cipher identifier!


Feedback and suggestions are welcome so that dCode offers the best 'Calculation with Dates' tool for free! Thank you!

Calculation with Dates

Addition of days to a given date calculator

//

Subtraction of days to a given date calculator

//

Number of days since a date

Answers to Questions (FAQ)

What is the addition of days to a date? (Definition)

Adding (or subtracting) days from a date involves determining a new date exactly N days before or after a reference date by traversing the calendar day by day.

This type of calculation is used to predict a deadline, estimate a delay, or measure a duration expressed in days.

Example: Calculate a countdown to an event (135 days before the next Olympic Games)

How to add/remove days to a date?

To add or remove days from a date, position the original date (day, month, year) in a reference calendar, then advance or rewind one day as many times as needed until the desired number of days is reached.

Date calculation tools like dCode use calendar algorithms that account for the actual length of months, leap years, and calendar transitions.

Example: Calculate the date of a 10,000-day birthday by adding 10,000 days to the birth date.

The calculation is based on the modern Gregorian calendar. For older dates (before 1582), some tools use the Julian calendar, noting that the transition from the Julian to the Gregorian calendar occurred at different times in different countries.

Approximations can only be used for estimating durations:

— 1 week = 7 days

— 1 month ≈ 30.44 days (average)

— 1 quarter ≈ 91.31 days (average)

— 1 year ≈ 365.2422 days (mean tropical year)

However, these values do not allow for the calculation of a precise date.

How to calculate your age in days?

To calculate an age in days, subtract a reference date (usually today) from the date of birth.

dCode offers a tool for calculating the difference between two dates.

How to add days of months in Excel?

To add days in Excel, add an integer to a date.

Example: 2010/01/01 + 1 = 2010/01/02

To add months, use the function EDATE

Example: EDATE("01/01/2010",1) = 2010/02/01

Source code

dCode retains ownership of the "Calculation with Dates" source code. Any algorithm for the "Calculation with Dates" algorithm, applet or snippet or script (converter, solver, encryption / decryption, encoding / decoding, ciphering / deciphering, breaker, translator), or any "Calculation with Dates" functions (calculate, convert, solve, decrypt / encrypt, decipher / cipher, decode / encode, translate) written in any informatic language (Python, Java, PHP, C#, Javascript, Matlab, etc.) or any database download or API access for "Calculation with Dates" or any other element are not public (except explicit open source licence). Same with the download for offline use on PC, mobile, tablet, iPhone or Android app.
Reminder: dCode is an educational and teaching resource, accessible online for free and for everyone.

Cite dCode

The content of the page "Calculation with Dates" and its results may be freely copied and reused, including for commercial purposes, provided that dCode.fr is cited as the source (Creative Commons CC-BY free distribution license).

Exporting the results is free and can be done simply by clicking on the export icons ⤓ (.csv or .txt format) or ⧉ (copy and paste).

To cite dCode.fr on another website, use the link: https://www.dcode.fr/date-calculation

In a scientific article or book, the recommended bibliographic citation is: Calculation with Dates on dCode.fr [online website], retrieved on 2025-12-23, https://www.dcode.fr/date-calculation

Need Help ?

Please, check our dCode Discord community for help requests!
NB: for encrypted messages, test our automatic cipher identifier!

Questions / Comments

Feedback and suggestions are welcome so that dCode offers the best 'Calculation with Dates' tool for free! Thank you!


https://www.dcode.fr/date-calculation
© 2025 dCode — The ultimate collection of tools for games, math, and puzzles.
 
Feedback