Calendar & Leap Years

Days Per Month In Date Range Calculator

Split a date interval into monthly counts.

--
days

--

Business Days
0
Weekend Days
0
Weeks
0.0
Total Hours
0 h

How Days Per Month In Date Range Calculator Works?

The Days per Month in Date Range Calculator works by splitting a date range at each month boundary and counting the days that fall in each month.

  1. 1

    Enter the range

    Pick the first and last dates of a stay, contract or cost period.

  2. 2

    Split at month ends

    The calculator cuts the range at each month boundary.

  3. 3

    Count each part

    Each part's days are counted separately.

  4. 4

    Read the breakdown

    The result lists days per month that sum to the total.

Days Per Month In Date Range Calculator Formula

The Days per Month formula is Days in Month M = min(End, last day of M) − max(Start, first day of M) + 1.

Days(M) = min(End, MonthEnd(M)) − max(Start, MonthStart(M)) + 1
Σ Days(M) = Total Days
MonthStart, MonthEnd:
First and last day of month M

Example: A hotel stay from Jan 28, 2026 to Feb 3, 2026 (inclusive, 7 days) splits into 4 days in January and 3 days in February.

Days Per Month In Date Range Calculator Conversion Table

The table splits the range Nov 25, 2026 to Mar 10, 2027 (inclusive) by month.

MonthFromToDays
November 2026Nov 25, 2026Nov 30, 20266
December 2026Dec 1, 2026Dec 31, 202631
January 2027Jan 1, 2027Jan 31, 202731
February 2027Feb 1, 2027Feb 28, 202728
March 2027Mar 1, 2027Mar 10, 202710
TotalNov 25, 2026Mar 10, 2027106

What is Days Per Month In Date Range Calculator?

A Days per Month in Date Range Calculator is a tool that shows how many days of a range fall in each calendar month.

Monthly accounting needs this split. A cost covering 100 days across 4 months is allocated by days per month.

The first and last months are partial. The middle months count in full.

What are the uses of Days Per Month In Date Range Calculator?

There are 5 main uses of the Days per Month in Date Range Calculator, including expense allocation, payroll splits and occupancy reports.

  • Expense allocation

    Accountants allocate prepaid costs by month.

  • Payroll splits

    Payroll teams split leave across pay months.

  • Occupancy reports

    Hotels report room nights by month.

  • Rent proration

    Landlords split rent for stays crossing months.

  • Revenue recognition

    Finance teams recognize subscription revenue per month.

Related Calendar & Leap Years Tools

View All 141 Tools →