calc_nper: Number of Periods (NPER)

View source: R/calculators.R

calc_nperR Documentation

Number of Periods (NPER)

Description

Calculates the number of periods for an investment.

Usage

calc_nper(pv, fv = 0, rate, pmt = 0, type = 0)

Arguments

pv

Present value.

fv

Future value.

rate

Interest rate per period (decimal).

pmt

Payment per period (optional, default = 0).

type

Payment timing: 0 for end of period, 1 for beginning of period.

Value

Number of periods.

Examples

calc_nper(pv = -1000, fv = 2000, rate = 0.05)
calc_nper(pv = 0, fv = 100000, rate = 0.01, pmt = -500)


brfinance documentation built on Feb. 19, 2026, 9:06 a.m.