Calculation Issues

Calculate Interest for an Exact Number of Days in Excel

Emma BrownEmma Brown Nov 27, 2026 869 views

Question details

Calculate accrued or compound interest over an exact date range using the required annual-day basis.

Calculate Interest for an Exact Number of Days in Excel
Product
Microsoft Excel
Device & OS
not provided
Scenario
Calculate loan interest using the principal, annual rate, start date, end date, and the day-count convention specified in the loan agreement.
Observed behavior
The calculation needs to count the correct number of days, including both dates when required, and apply the appropriate 360-, 365-, or 366-day basis.
Before you start

Check the loan agreement for the annual-day basis, whether both dates are included, and whether interest is simple or compounded daily. Enter the dates as Excel dates and the annual rate as a percentage, such as 0.44%.

Solution 1Recommended

Calculate daily compound interest for an exact date range

Use this formula when the annual rate is compounded daily on a fixed 365-day basis.

1
Enter the loan details

In Excel, enter the ending date in A1, the starting date in A2, the principal in A3, and the annual interest rate in B3.

2
Enter the compound interest formula

Select an empty cell and enter =A3*(1+B3/365)^(A1-A2)-A3. This returns interest only, excluding the original principal.

3
Adjust the day count

If the agreement includes both the start and end dates, replace A1-A2 with A1-A2+1. Replace 365 with 360 or 366 if the agreement specifies that fixed basis.

Calculate daily compound interest for an exact date range
Check the compounding terms: This formula assumes daily compounding at the stated annual rate. Other compounding schedules or day-count conventions may require a different formula.
Calculate loan interest in WPS

Calculate exact-day interest in WPS Spreadsheets

Use date subtraction and a simple or daily compound interest formula in WPS Spreadsheets, then save the calculation in an Excel-compatible format.

  1. 1. Open a spreadsheet: Open WPS Spreadsheets and create a blank workbook or open an existing Excel file.
  2. 2. Enter the loan details: Enter the ending date in A1, starting date in A2, principal in A3, and annual rate in B3.
  3. 3. Enter the interest formula: Select an empty cell and enter =A3*B3*(A1-A2+1)/360 for simple interest with both dates included. For daily compound interest on a 365-day basis, enter =A3*(1+B3/365)^(A1-A2+1)-A3 instead.
  4. 4. Match the agreement and save: Remove +1 if both dates should not be included, and change the denominator to the required annual basis. Use File > Save As to save the workbook as an XLSX file.
Calculate interest using actual dates and an inclusive day count when required.Open and save Microsoft Excel XLSX files.Use familiar spreadsheet formulas and cell formatting.Work with a free, easy-to-use office suite.
microsoft office alternative - wps office

Frequently Asked Questions

How do I count both the start and end dates in Excel?

Use =A1-A2+1, with the ending date in A1 and starting date in A2. Without +1, Excel returns the elapsed days between the dates.

Why does January 28 through January 31 count as four days?

When both dates are included, January 28, 29, 30, and 31 are counted. Use A1-A2+1 in the interest formula if the agreement requires this treatment.

Should I use 360 or 365 days for loan interest?

Use the annual-day basis specified in the loan agreement. An actual/360 calculation divides the actual day count by 360; it is different from a 30/360 convention.

Why is my compound interest result different from simple interest?

Daily compound interest applies interest to the accumulated balance, while simple interest applies the rate to the original principal. Check the loan terms and use the formula that matches them.