IFinance.FvSchedule

Fore Syntax

FvSchedule(Principal: Double; Schedule: Array): Double;

Fore.NET Syntax

FvSchedule(Principal: double; Schedule: System.Array): double;

Parameters

Parameters Description Constraints
Principal Current investments value.  
Schedule Array of interest rates variables. It is required to use an array of the Double type.

Description

The FvSchedule method returns future value of the capital amount after applying a set of complex interest rates.

Comments

To get future investment value at condition of regular equal payments and constant interest rate, use the IFinance.Fv method.

Fore Example

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

Sub UserProc;
Var
    r: Double;
    Arr: Array[3Of Double;

Begin
    Arr[0] := 0.01;
    Arr[1] := 0.15;
    Arr[2] := 0.25;
    r := Finance.FvSchedule(800, Arr);

    Debug.WriteLine(r);
End Sub UserProc;

After executing the example the console window displays the future value of original main sum equal to 1161.5.

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();
    Arr: Array[3Of Double;
Begin
    Arr[0] := 0.01;
    Arr[1] := 0.15;
    Arr[2] := 0.25;
    r := Finance.FvSchedule(800, Arr);
    System.Diagnostics.Debug.WriteLine(r);
End Sub;

See also:

IFinance