Day Count Calculator
Count days between two dates under ACT/365, ACT/360 or 30/360 and turn the result into accrued interest.
What it does
Interest on a bond, loan or deposit rarely starts and ends on clean year boundaries. A day count convention is the rule that decides how much of a year a period represents, so that an accrual can be worked out fairly. The International Swaps and Derivatives Association publishes the standard definitions used in the swaps market, and its day count pages set out how each convention treats the dates at either end of a period.
Under ACT/365 fixed, the numerator is the actual number of days elapsed and the denominator is always 365, even in a leap year. ACT/360 uses the same numerator over 360, a convention common in money markets and quoted for euro instruments in an ISDA market note. Both count the start date and exclude the end date, so the elapsed days are simply the difference between the two calendar dates.
The 30/360 family takes a different route. It pretends every month has 30 days and every year has 360, then adjusts dates that fall on the 31st or at the end of February. ISDA sets out its own version, often called 30/360 ISDA, with rules for when the first date falls on the 31st and when the second does. The result is a more even accrual that bond markets have used for decades.
Once you have the fraction, the interest is straightforward: multiply the principal by the annual rate and by the fraction. A small change in the convention can change the interest by a noticeable amount on a large principal, which is why the convention is written into the contract rather than left to the accountant calculating by hand.
This page does all date arithmetic in UTC. That choice avoids the classic error where a daylight saving shift adds or removes an hour and pushes a date across a boundary. It reports the elapsed calendar days, the days the chosen convention actually uses, the fraction to six decimal places and the accrued interest in dollars.
How to use
- Enter the start date of the accrual period.
- Enter the end date, remembering that the conventions count this day as excluded.
- Pick the convention named in your agreement: ACT/365, ACT/360 or 30/360 ISDA.
- Enter the principal amount in dollars.
- Enter the annual interest rate as a percentage, without the percent sign.
- Read the calendar days, the convention days, the fraction and the accrued interest.
Formula
- Y1, M1, D1
- Year, month and day of the start date after any 30/360 adjustment.
- Y2, M2, D2
- Year, month and day of the end date after any 30/360 adjustment.
- n
- Actual calendar days from the start date up to but not including the end date.
- f
- Day count fraction, the share of a year that the period represents.
- P
- Principal, the amount on which interest accrues, in dollars.
- r
- Annual interest rate written as a decimal, so 5 percent is 0.05.
For 30/360 ISDA, if the start date is the 31st it is changed to the 30th. If the start date is then the 30th and the end date is the 31st, the end date is changed to the 30th. The end date is never moved to the first of the next month under this version. ACT/365 fixed uses 365 even across a leap day, which is different from ACT/ACT methods that split the period by year.
Worked example
Example: six months of interest on $10,000
Defaults: start 15 January 2025, end 15 July 2025, ACT/365 fixed, principal $10,000 and an annual rate of 5 percent.
- Count the calendar days from 15 January 2025 to 15 July 2025: 181 days.
- Under ACT/365 the denominator is fixed at 365, so the fraction is 181 / 365 = 0.495890 to six decimal places.
- Convert the rate: 5 percent is 0.05 per year.
- Multiply principal by rate by fraction: 10000 x 0.05 x 0.495890 = 247.9452, which rounds to $247.95.
- For comparison, 30/360 ISDA gives 360 x 0 + 30 x 6 + (15 - 15) = 180 days and a fraction of 180 / 360 = 0.500000.
- The tool shows 181 calendar days, 181 counted days, a fraction of 0.495890 and accrued interest of $247.95.
Reference table
| Convention | Counted days | Denominator | Fraction | Interest |
|---|---|---|---|---|
| ACT/365 (fixed) | 181 | 365 | 0.495890 | $247.95 |
| ACT/360 | 181 | 360 | 0.502778 | $251.39 |
| 30/360 (ISDA) | 180 | 360 | 0.500000 | $250.00 |
Limits
- Covers three common conventions only, not ACT/ACT ISDA, ACT/ACT ICMA, 30E/360 or business day counts.
- Counts calendar days in UTC and ignores holiday calendars, settlement adjustments and business day rules.
- Assumes a single accrual period at a fixed rate, so it does not handle stepped coupons or compounding.
- Simple interest is used, which is standard for short accruals but not for products that compound within the period.
Common mistakes
- Counting both the start and the end date, which adds a day that the conventions exclude.
- Using 366 as the denominator in a leap year under ACT/365 fixed, where the denominator stays 365.
- Applying the 30/360 adjustment to the end date on the last day of February, which is not part of the ISDA version.
- Entering the rate as 5 instead of 0.05 when checking the arithmetic by hand.
- Assuming the start date can be later than the end date and still give a negative interest that makes sense.
Try it yourself
Quick checks. Answers sit tucked under each question.
A period runs 1 March 2025 to 1 September 2025 under ACT/365 on $5,000 at 4 percent. What is the interest?
The elapsed days are 184, so the fraction is 184 / 365 = 0.504110. Interest is 5000 x 0.04 x 0.504110 = $100.82.
The same six month period is calculated on the same principal under 30/360 ISDA. What changes?
The counted days become 180 and the fraction 0.500000, so interest is 5000 x 0.04 x 0.5 = $100.00, which is $0.82 less than ACT/365.
What is the ACT/360 fraction for 181 elapsed days?
It is 181 / 360 = 0.502778 to six decimal places. On $10,000 at 5 percent that gives $251.39 of interest.
Questions
What is a day count fraction?
It is the fraction of a year that an accrual period represents. Interest is then principal times rate times that fraction.
Why do some conventions use 360 days?
A 360 day year divides evenly into twelve 30 day months, which made manual bond calculations simpler and gives each month the same accrual.
Does ACT/365 change in a leap year?
No. The fixed version always divides by 365, even if the period contains 29 February. Other methods such as ACT/ACT do change the denominator.
Which dates are included in the count?
The start date is included and the end date is excluded, so the number of days is the difference between the two dates.
Which convention should I use?
Use the one stated in the contract or product terms. The difference between ACT/365 and 30/360 can move interest by a noticeable amount on a large balance.
Are holidays and weekends handled here?
No. These conventions count calendar days. Business day conventions decide when payments fall and are a separate rule.
Sources
- ISDA, 30/360 day count conventions and 2006 ISDA definitions examples
- ISDA, EMU and market conventions: recent developments, ACT/365 and ACT/360 memo