Returns the number of periods required by an investment to reach a specified value.
Name | Type | Description |
arg1 | number | Is the interest rate per period.. |
arg2 | number | Is the present value of the investment. |
arg3 | number | Is the desired future value of the investment. |
builder.CreateFile("xlsx"); var oWorksheet = Api.GetActiveSheet(); var oFunction = Api.GetWorksheetFunction(); oWorksheet.GetRange("A1").SetValue(oFunction.PDURATION("2.50%", 2000, 2200)); builder.SaveFile("xlsx", "PDURATION.xlsx"); builder.CloseFile();