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.
Example result with the default inputs
The server calculated this example from the default values in the form above, so it is visible even when JavaScript is off. Change the inputs and press Calculate for your own estimate.
30 days between dates
The difference is the absolute number of calendar days and excludes the start date. It does not exclude weekends or public holidays and should not be used alone to determine statutory filing deadlines.
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 should use the date calculator
Project managers, HR teams, landlords, tax preparers and students use this page to count the days between two dates, or to add or subtract a number of days from a date. Typical uses include notice periods, payment due dates, lease and probation lengths, and counting how long a tax payment has been overdue.
How it works
In "days between" mode the calculator returns the absolute number of calendar days between the start and end dates, excluding the start date, and tells you whether the end date is before or after the start. In add or subtract mode it moves the start date by the number of days you enter and shows the resulting date with the weekday. Leap years are handled correctly. Weekends and public holidays are not removed.
Worked examples
Days between. From 1 March 2026 to 30 April 2026 is 60 days.
Adding days. Adding 90 days to 15 January 2026 gives Wednesday, 15 April 2026.
Overdue tax. If a payment was due on 1 March and you expect to pay on 30 April, 60 days overdue is the figure to carry into the tax penalty and interest calculator, once you have confirmed the start date and counting rule in your notice.
When calendar days are not enough
Many contracts and rules count business days, working days or months, not calendar days, and some exclude public holidays. This tool counts calendar days only, so confirm the counting rule in your document before relying on the result for a legal deadline.
Related tools
Use dates with the loan repayment calculator to line up payment schedules, with the salary calculator to count working weeks, and with the savings goal calculator to set a realistic deadline.
More questions and answers
Does the count include the start date?
No. It excludes the start date, so one day later is a difference of one day.
Does it skip weekends or holidays?
No. It counts all calendar days.
What does a negative number of days do?
Negative days reverse the direction of the add or subtract operation.
Can I rely on it for legal deadlines?
Use it for planning, and confirm the counting rule in the relevant law or contract, because some rules count working days or exclude certain days.
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.
This page follows the editorial policy and the calculation methodology. No professional review is claimed unless a named reviewer, credential and review date appear above; always check the official references on this page for the period you need, and see the authors and reviewers page for published profiles.
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.