IFinance.Accrint

Syntax

Accrint(Issue: DateTime; FirstInterest: DateTime; Settlement: DateTime; Rate: Double; NominalCost: Double; Frequency: Integer; [Basis: Integer=0]): Double;

Parameters

Issue. The security's issue date. Must be less than Settlement.

FirstInterest. The first payment date on securities.

Settlement. The payment day on securities. Must be greater than Issue.

Rate. Annual interest rate for coupons on securities. Must be positive.

NominalCost. Face value of securities. Must be positive.

Frequency. The annual number of coupon payments. The parameter can take the following values:

Basis. The day calculation method used. Select a value from 0 to 4:

Optional parameter.

Description

The Accrint method returns accumulated interest for securities with regular payment of interest.

Comments

Accrint is calculated using the following formula:

,

where:

Example

Add a link to the MathFin system assembly.

Sub UserProc;
Var
    r: Double;
Begin
    r := Finance.Accrint(DateTime.ComposeDay(2008,01,11),
        DateTime.ComposeDay(2008,02,11), DateTime.ComposeDay(2008,03,11), 0.1100020);

    Debug.WriteLine(r);
End Sub UserProc;

After executing the example the console window displays the accumulated percent that is equal to 16.67.

See also:

IFinance