•The ACCRINT function is a financial function available in both Microsoft Excel and DAX (Data Analysis Expressions) that calculates the accrued interest for a security that pays periodic interest. This function is particularly useful for determining the interest earned between the issue date and the settlement date of a security, such as bonds that pay interest at regular intervals.
•Calc_method Optional. A logical value that specifies the way to calculate the total accrued interest when the date of settlement is later than the date of first_interest. A value of TRUE (1) returns the total accrued interest from issue to settlement. A value of FALSE (0) returns the accrued interest from first_interest to settlement. If you do not enter the argument, it defaults to TRUE.
Formula:
=ACCRINT(issue, first_interest, settlement, rate, par, frequency, [basis], [calc_m
Syntax:
The ACCRINT function syntax has the following arguments:
•Issue Required. The security’s issue date.
•First_interest Required. The security’s first interest date.
•Settlement Required. The security’s settlement date. The security settlement date is the date after the issue date when the security is traded to the buyer.
•Rate Required. The security’s annual coupon rate.
•Par Required. The security’s par value. If you omit par, ACCRINT uses $1,000.
•Frequency Required. The number of coupon payments per year. For annual payments, frequency = 1; for semiannual, frequency = 2; for quarterly, frequency = 4.
•Basis Optional. The type of day count basis to use.

show use of formula in this image.