Days Per Month In Date Range Calculator
Split a date interval into monthly counts.
--
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
Enter the range
Pick the first and last dates of a stay, contract or cost period.
- 2
Split at month ends
The calculator cuts the range at each month boundary.
- 3
Count each part
Each part's days are counted separately.
- 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.
| Month | From | To | Days |
|---|---|---|---|
| November 2026 | Nov 25, 2026 | Nov 30, 2026 | 6 |
| December 2026 | Dec 1, 2026 | Dec 31, 2026 | 31 |
| January 2027 | Jan 1, 2027 | Jan 31, 2027 | 31 |
| February 2027 | Feb 1, 2027 | Feb 28, 2027 | 28 |
| March 2027 | Mar 1, 2027 | Mar 10, 2027 | 10 |
| Total | Nov 25, 2026 | Mar 10, 2027 | 106 |
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 →Day Of Year Calculator
Find a date’s ordinal position within its year.
Day Of Year To Date Converter
Convert a year and ordinal day into a date.
Days In Month Calculator
Find the length of a selected month.
Days In Year Calculator
Find the length of a selected year.
Leap Year Checker
Check whether a Gregorian year is a leap year.
Leap Years Between Dates Calculator
List leap years within a selected interval.