Date & TimeFormula-based · Runs in your browser

Date Calculator

Calculate duration between dates or add/subtract days from a starting point.

Loading calculator…

Saved locally, explained clearly

Drafts, calculations, scenarios, and workflow progress stay in this browser unless you export them.

Opening local database…

Calculation steps

Follow what happened from the selected formula to the displayed answer.

Show substituted values and intermediate working
Calculate current inputs to see the working.
  1. 1

    Formula selected

    The calculator uses the following formula or method.

    The selected number of calendar days, weeks, months, or years is added to or subtracted from the start date using UTC calendar arithmetic.

  2. 2

    Values entered

    Your values are placed into the calculation.

    Enter values to see what is used in this step.

  3. 3

    Result calculated

    The formula or method produces the following result values.

    Results will appear after a successful calculation.

  4. 4

    Answer formatted

    Displayed values are rounded and formatted using each output’s configured precision.

Scenario comparison

Save working scenarios, then select two or three to compare. Formula versions and inputs remain visible.

No scenarios saved for this calculator yet.

Recent calculations

Successful calculations are retained locally according to your privacy settings.

No local history for this calculator yet.

Data and privacy

How it works

Calculate duration between dates or add/subtract days from a starting point.

Input query strings and outputs

Use an input name in this page’s URL as ?name=value, and join additional inputs with &. Portable shared links may instead use the compact ?ac= state parameter.

Input query strings

4
  • ?startDate= Start Date

    Date · Optional · Default: current date

  • ?endDate= End Date

    Date · Optional · Default:

  • ?daysToAdd= Days to Add (±)

    Number · Optional · Default: 0

  • ?mode= Mode

    Choice · Optional · Default: diff

Outputs

1
  • result Result

    Text · Primary output

result contains the calculator’s complete rendered result area, including its visible result cards, tables, charts, and messages.

Calculate time between dates or add/subtract days from a date

Description

The Date Calculator is a powerful scheduling tool with two primary functions. The Date Difference mode calculates the total number of days between any two points in time. The Add/Subtract Days mode allows you to project forward or backward from a specific date to find a deadline, anniversary, or goal date.

Inputs

  • Mode: Choose between “Date Difference” or “Add/Subtract Days.”
  • Start Date: The beginning date for your calculation.
  • End Date (Difference mode): The target date to compare against.
  • Days to Add (Add mode): Use positive numbers to look forward or negative numbers to look backward into the past.

Outputs

  • Result: Either the total count of days or the specific date reached.

Chart

  • N/A: This tool provides direct calendar results.

“Good to Know”

  • Inclusive vs. Exclusive: This tool calculates the absolute difference. For example, the difference between January 1st and January 2nd is “1 day.”
  • Leap Years: The tool automatically accounts for leap years and the varying number of days in each month.
  • Negative Days: In “Add/Subtract” mode, entering -30 will tell you exactly what the date was 30 days ago.

Examples

Example 1: Anniversary Countdown

  • Input: Mode: Diff, Start: Today, End: Next Year’s Anniversary
  • Output: 365 days (or 366 in a leap year)

Example 2: Project Deadline

  • Input: Mode: Add, Start: Oct 1, Days to Add: 45
  • Output: Nov 15

Example 3: Past History

  • Input: Mode: Add, Start: Jan 1, Days to Add: -100
  • Output: Sep 23 (of the previous year)
Sources
  • No external reference is listed for this calculator. Its formula and variable definitions are shown above.
Limitations
  • Calendar results depend on the selected dates and time-zone assumptions. Local holidays and daylight-saving changes are included only where stated.