Date and Time Calculator
Calculate the number of days between two dates or add and subtract days from a date.
Calculator page content last updated: November 29, 2026. This is a content-update date, not a claim of independent professional review.
How this calculator works
The date calculator counts calendar days between two dates or adds/subtracts a number of calendar days from a start date. It uses the Gregorian calendar and PHP's date arithmetic, which accounts for different month lengths and leap years.
The difference between dates is reported as an absolute calendar-day count and separately states whether the end date is before or after the start date. Add and subtract modes accept negative day values; a negative value reverses the selected direction. The start and end date defaults are generated when the form is rendered, so the displayed dates do not become stale after deployment.
The calculator does not remove weekends, Nigerian public holidays, court vacation periods or statutory non-working days. Do not use a simple calendar-day difference alone to determine a tax filing, court, employment or contractual deadline. Check the applicable law, notice and official holiday calendar.
Calculation method
Date difference mode reports the absolute elapsed calendar days between the two Gregorian dates and excludes the starting date. Add/subtract mode shifts the start date by the number of calendar days entered. Weekends and public holidays are not removed, and statutory deadline-counting rules are not inferred.
Inputs and how to use them
- Start date: Enter the value that matches this field for the period and scenario you are calculating.
- End date: Enter the value that matches this field for the period and scenario you are calculating.
- Date calculation: Enter the value that matches this field for the period and scenario you are calculating.
- Number of days (negative values reverse direction): Enter the value that matches this field for the period and scenario you are calculating.
Worked example
From 1 January to 31 January there are 30 elapsed calendar days. If you need an inclusive count that includes both the start and end dates, add one day to the elapsed count. The tool states the date difference rather than deciding the counting convention in a contract or law.
Checks before using the result
This calculator counts Gregorian calendar days. It does not remove weekends, public holidays, court vacation or statutory non-working days. Legal, tax and contractual deadlines can have special counting rules, so check the exact notice and applicable official calendar.
Frequently asked questions
Does the result include both dates?
The elapsed-day difference excludes the starting date. For a simple inclusive count of both endpoints, add one where the relevant rule requires inclusive counting.
Does it calculate working days?
No. It counts calendar days and does not apply Nigerian public holidays, weekends or sector-specific working-day rules.
Who created and checked this calculator
Publisher: Jason Foundation publishes these independent financial and business calculators. The publisher identity is not a claim of professional accounting, tax or legal qualification, government affiliation or charitable status.
Page author: No individual byline is currently recorded for this calculator. The site does not invent an author identity or imply that the publisher has professional qualifications.
Professional review: No complete page-specific professional review is recorded. A general site profile, if any, is not evidence that this calculator or its current formula has been independently reviewed.
Source verification date: No page-specific source-check date is recorded. Review the official references linked on this page before relying on a tax or legal result.
View the public correction log for this calculator → · Report a suspected error →
Important limitations
This calculator provides a general estimate using the figures and assumptions displayed. It may not reflect every exemption, deduction, fee, law, contract term or individual circumstance. Check the applicable official source and consult a qualified professional before acting on a material tax or financial decision.