ISPMT
function ISPMT(
arg1: number = null,
arg2: number = null,
arg3: number = null,
arg4: number = null,
): number | string | boolean
Description
Returns the interest paid during a specific period of an investment.
Parameters
- arg1
number
null Interest rate per period. For example, use 6%/4 for quarterly payments at 6% APR.
- arg2
number
null Period for which you want to find the interest.
- arg3
number
null Number of payment periods in an investment.
- arg4
number
null Lump sum amount that a series of future payments is right now.
Returns
number | string | boolean
Try It
var oWorksheet = Api.GetActiveSheet();
var oFunction = Api.GetWorksheetFunction();
oWorksheet.GetRange("A1").SetValue(oFunction.ISPMT(0.1/12, 1, 2*12, 2000));