This function calculates the accrued interest for a security that pays periodic interest.
ACCRINT(issue, first, settle, rate, par, frequency, basis)
This function has these arguments:
Date that the security is issued
First date for calculating the interest for the security
Settlement date for the security
Annual interest rate for the security
[Optional] Par value for the security; if omitted, the calculation uses a value of $1,000
Frequency of payment, number of payments per year
[Optional] Integer representing the basis for day count (Refer to Day Count Basis.)
This function requires that the issue is less than the settlement (otherwise a #NUM! error is returned). If the rate or par is less than or equal to 0, then a #NUM! error is returned. If the frequency is a number other than 1, 2, or 4, then a #NUM! error is returned. If the basis is less than 0 or greater than 4, a #NUM! error is returned.
Accepts numeric and DateTime object data. Returns numeric data.
ACCRINT(DATE(2003,1,1),DATE(2003,1,7),DATE(2005,1,7),0.5,1000,2) gives the result 1008.33333