Edit

Share via


WorksheetFunction.NPer(Double, Double, Double, Object, Object) Method

Definition

Returns the number of periods for an investment based on periodic, constant payments and a constant interest rate.

public double NPer (double Arg1, double Arg2, double Arg3, object Arg4, object Arg5);
Public Function NPer (Arg1 As Double, Arg2 As Double, Arg3 As Double, Optional Arg4 As Object, Optional Arg5 As Object) As Double

Parameters

Arg1
Double

Rate - the interest rate per period.

Arg2
Double

Pmt - the payment made each period; it cannot change over the life of the annuity. Typically, pmt contains principal and interest but no other fees or taxes.

Arg3
Double

Pv - the present value, or the lump-sum amount that a series of future payments is worth right now.

Arg4
Object

Fv - the future value, or a cash balance you want to attain after the last payment is made. If fv is omitted, it is assumed to be 0 (the future value of a loan, for example, is 0).

Arg5
Object

Type - the number 0 or 1 and indicates when payments are due.

Returns

Remarks

0 or omittedAt the end of the period
1At the beginning of the period

Applies to