Date vs time

Daylight saving time usually does not change date-only math — but it can change elapsed hours.

Adding one calendar date is different from adding exactly 24 hours.

Date-only arithmetic

For “what date is 30 days from March 1?”, use calendar-date math. DYFRO keeps date-only calculations separate from elapsed timestamps.

Timestamp arithmetic

For “what instant is 720 hours later?”, elapsed-time arithmetic is appropriate and the timezone can matter.

DST transitions

A local clock can jump forward or repeat an hour. The civil date still advances to the next date even when the elapsed duration is not exactly 24 hours.

Avoid mixed models

Keep the intended timezone and distinguish calendar periods from elapsed durations.

Keep the models separate

Run the date-only calculation, then verify timestamps independently.

Use the calculator below when the question is about calendar dates. If the source rule is instead defined in elapsed hours or an exact timestamp, preserve the timezone and verify that instant separately rather than converting it to “days” by assumption.

Live calculator

Calculate a date

Your browser uses your local calendar date. The receipt makes the counting rule explicit.

Runs in your browser
01
Essential inputsSet the dates and the primary rule
02Counting optionsInclusive counting and US holidays
Keep checking

Related date tools