IFinance.Accrint

Syntax

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

Accrint(Issue: System.DateTime; FirstInterest: System.DateTime; Settlement: System.DateTime; Rate: double; NominalCost: double; Frequency: integer; Basis: integer): 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:

 

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;

Imports Prognoz.Platform.Interop.MathFin;

Public Shared Sub Main(Params: StartParams);
Var
    r: double;
    Finance: FinanceClass = New FinanceClass();
    DateTime1, DateTime2, DateTime3: System.DateTime;
Begin
    DateTime1 := New DateTime(2008,01,11);
    DateTime2 := New DateTime(2008,02,11);
    DateTime3 := New DateTime(2008,03,11);
    r := Finance.Accrint(DateTime1, DateTime2, DateTime3, 0.1, 1000, 2, 0);
    System.Diagnostics.Debug.WriteLine(r);
End Sub;

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

See also:

IFinance