Calculation Number Of Days

Instant date span, business days & live distribution

Excel DAYS Formula Calculator

Generate a formula for days between dates.

Result
—

How the Excel DAYS Formula Calculator Works

Pick a start date and an end date. Copy the DAYS formula into Excel or Google Sheets. The tool also shows the number of days the formula returns.

  1. Enter the start date

    Enter the earlier date.

  2. Enter the end date

    Enter the later date.

  3. Copy the formula

    The calculator writes =DAYS with the end date first and the start date second.

  4. Paste into a cell

    Paste the formula into Excel or Google Sheets. Replace the date text with cell references, such as =DAYS(B2, A2).

How the Count Is Calculated

The DAYS function subtracts the start date from the end date.

=DAYS(end_date, start_date)
= end_date − start_date
end_date
First argument: the later date.
start_date
Second argument: the earlier date.
Result
Negative, if end_date is earlier than start_date.

Example: =DAYS("2026-12-25", "2026-12-04") returns 21. Swapping the arguments returns −21.

Worked Examples

The table lists DAYS results and the equivalent subtraction formula.

FormulaResultEquivalent
=DAYS("2026-12-25","2026-12-04")21=B1-A1
=DAYS("2026-12-04","2026-12-25")−21=A1-B1
=DAYS("2026-03-01","2026-01-01")59=B1-A1
=DAYS("2027-01-01","2026-01-01")365=B1-A1
=DAYS(TODAY(),"2026-01-01")days since 1 Jan 2026=TODAY()-A1

What the Tool Measures

The Excel DAYS function is a date function that returns the number of days between 2 dates. Microsoft added DAYS in Excel 2013, and Google Sheets supports DAYS with the same syntax.

DAYS takes the end date first, the opposite order from DATEDIF and NETWORKDAYS. DAYS accepts date text such as "2026-12-04", while plain subtraction needs real date values.

When to Use This Tool

There are 4 main uses of the Excel DAYS Formula Calculator, including aging reports and countdowns.

  • Invoice aging

    Accountants compute days past due with =DAYS(TODAY(), due_date).

  • Countdowns

    Planners show days left with =DAYS(event_date, TODAY()).

  • Inventory age

    Warehouses compute days in stock.

  • Spreadsheet training

    Trainers show the argument order of DAYS.