Calculate Interest for an Exact Number of Days in Excel
Question details
Calculate accrued or compound interest over an exact date range using the required annual-day basis.

- 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.
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%.
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.
In Excel, enter the ending date in A1, the starting date in A2, the principal in A3, and the annual interest rate in B3.
Select an empty cell and enter =A3*(1+B3/365)^(A1-A2)-A3. This returns interest only, excluding the original principal.
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 simple accrued interest using actual days
Use this method when the loan accrues simple interest rather than compounding daily.
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. Open a spreadsheet: Open WPS Spreadsheets and create a blank workbook or open an existing Excel file.
- 2. Enter the loan details: Enter the ending date in A1, starting date in A2, principal in A3, and annual rate in B3.
- 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. 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.

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.




