Returns the number of periods for an investment for which periodic,
and constant payments are made and the interest rate is constant.
Namespace:
Imsl.Finance
Assembly:
ImslCS (in ImslCS.dll) Version: 6.5.0.0
Syntax
C# |
---|
public static double Nper( double rate, double pmt, double pv, double fv, Finance..::.Period period ) |
Visual Basic (Declaration) |
---|
Public Shared Function Nper ( _ rate As Double, _ pmt As Double, _ pv As Double, _ fv As Double, _ period As Finance..::.Period _ ) As Double |
Visual C++ |
---|
public: static double Nper( double rate, double pmt, double pv, double fv, Finance..::.Period period ) |
Parameters
- rate
- Type: System..::.Double
A double which specifies the interest rate.
- pmt
- Type: System..::.Double
A double which specifies the payment.
- pv
- Type: System..::.Double
A double which specifies the present value.
- fv
- Type: System..::.Double
A double which specifies the future value.
- period
- Type: Imsl.Finance..::.Finance..::.Period
A int which specifies the time in each period when the payment is made (either AtEnd or AtBeginning).
Return Value
A int which specifies the number of periods for an investment.
Remarks
It can be found by solving the following:

![{\it
pv} (1 + {\it rate})^{\it nper} + {\it pmt} \left[ {1 + {\it rate}
\left( {\it period} \right)} \right] {{(1 + {\it rate})^{\it nper}
- 1} \over {\it rate}} + {\it fv} = 0](eqn/eqn_0345.png)
If ,

If ,
![{\it
pv} (1 + {\it rate})^{\it nper} + {\it pmt} \left[ {1 + {\it rate}
\left( {\it period} \right)} \right] {{(1 + {\it rate})^{\it nper}
- 1} \over {\it rate}} + {\it fv} = 0](eqn/eqn_0345.png)