PMT

function PMT(
  arg1: number = null,
  arg2: number = null,
  arg3: number = null,
  arg4: number = null,
  arg5: number = null,
): number | string | boolean

Description

Calculates the payment for a loan based on constant payments and a constant interest rate.

Parameters

arg1numberdefault: null

Is the interest rate per period for the loan. For example, use 6%/4 for quarterly payments at 6% APR.

arg2numberdefault: null

Is the total number of payments for the loan.

arg3numberdefault: null

Is the present value: the total amount that a series of future payments is worth now.

arg4numberdefault: null

Is the future value, or a cash balance you want to attain after the last payment is made, 0 (zero) if omitted.

arg5numberdefault: null

Is a logical value: payment at the beginning of the period = 1; payment at the end of the period = 0 or omitted.

Returns

number | string | boolean

Try It

var oWorksheet = Api.GetActiveSheet();
var oFunction = Api.GetWorksheetFunction();
oWorksheet.GetRange("A1").SetValue(oFunction.PMT(0.08/12, 2*12, 10000, 0));

Get Help

  • If you have any questions about ONLYOFFICE Docs, try the FAQ section first.
  • You can request a feature or report a bug by posting an issue on GitHub.
  • You can also ask our developers on ONLYOFFICE forum (registration required).