TRY NEW VERSION

Try now New API BETA

Try out the new view and capabilities of the API documentation

START

RRI

RRI(arg1, arg2, arg3) → { number | string | boolean }

Returns an equivalent interest rate for the growth of an investment.

Parameters:

Name Type Description
arg1 number

Is the number of periods for the investment.

arg2 number

Is the present value of the investment.

arg3 number

Is the future value of the investment.

Returns:

Type
number | string | boolean

Example

Copy code
builder.CreateFile("xlsx");
var oWorksheet = Api.GetActiveSheet();
var oFunction = Api.GetWorksheetFunction();
oWorksheet.GetRange("A1").SetValue(oFunction.RRI(12, 10000, 20000));
builder.SaveFile("xlsx", "RRI.xlsx");
builder.CloseFile();

Resulting document