IFinance.Pmt

Fore Syntax

Pmt(

Rate: Double;

PeriodCount: Integer;

PresentValue: Double;

FutureValue: Double;

Type: Integer): Double;

Fore.NET Syntax

Pmt(

Rate: double;

PeriodCount: integer;

PresentValue: double;

FutureValue: double;

Type: integer): double;

Parameters

Parameters Description Constraints
Rate Loan interest rate. Cannot be negative.
PeriodCount Total number of payments on a loan. Must be positive.
PresentValue Present net value or a total sum, which is currently equal to a set of future payments, also called a capital amount.  
FutureValue The required value of future cost, or the remainder after the last payment.  
Type Selecting time of payment:
0 - in the end of the period.
1 - in the beginning of the period.
Must take the values 0 or 1.

Description

The Pmt method returns a sum of regular annuity payments, if the payment sums are equal and the interest rate is constant.

Comments

Pmt is calculated using the following formula:

Fore Example

To execute the example, add a link to the MathFin system assembly.

Sub UserProc;
Var
    r: Double;
Begin
    r := Finance.
Pmt(0.01125000000);
    Debug.WriteLine(r);
End Sub UserProc;

After executing the example the console window displays the sum of periodic payment equal to -4442.43.

Fore.NET Example

The requirements and result of the Fore.NET example execution match with those in the Fore example.

Imports Prognoz.Platform.Interop.MathFin;

Public Shared Sub Main(Params: StartParams);
Var
    r: double;
    Finance: FinanceClass = New FinanceClass();
Begin
    r := Finance.Pmt(0.01125000000);
    System.Diagnostics.Debug.WriteLine(r);
End Sub;

See also:

IFinance