CUMPRINC
function CUMPRINC(
arg1: any = null,
arg2: any = null,
arg3: any = null,
arg4: any = null,
arg5: any = null,
arg6: any = null,
): number | string | boolean
Description
Returns the cumulative principal paid on a loan between two periods.
Parameters
- arg1
any
null Is the interest rate.
- arg2
any
null Is the total number of payment periods.
- arg3
any
null Is the present value.
- arg4
any
null Is the first period in the calculation.
- arg5
any
null Is the last period in the calculation.
- arg6
any
null Is the timing of the payment.
Returns
number | string | boolean
Try It
var oWorksheet = Api.GetActiveSheet();
var oFunction = Api.GetWorksheetFunction();
oWorksheet.GetRange("A1").SetValue(oFunction.CUMPRINC(0.1/12, 2*12, 2000, 1, 24, 0));