FvSchedule(Principal: Double; Schedule: Array): Double;
FvSchedule(Principal: double; Schedule: System.Array): double;
Parameters | Description | Constraints |
Principal | Current investments value. | |
Schedule | Array of interest rates variables. | It is required to use an array of the Double type. |
The FvSchedule method returns future value of the capital amount after applying a set of complex interest rates.
To get future investment value at condition of regular equal payments and constant interest rate, use the IFinance.Fv method.
To execute the example, add a link to the MathFin system assembly.
Sub UserProc;
Var
r: Double;
Arr: Array[3] Of 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.
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[3] Of 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: