Learn R Programming

brfinance (version 0.8.0)

calc_pv_annuity: Present Value of an Annuity

Description

Calculates the present value of a series of equal payments.

Usage

calc_pv_annuity(pmt, rate, n, type = 0)

Value

Present value of the annuity.

Arguments

pmt

Payment amount per period.

rate

Interest rate per period (decimal).

n

Number of periods.

type

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

Examples

Run this code
calc_pv_annuity(pmt = 100, rate = 0.05, n = 10)
calc_pv_annuity(pmt = 100, rate = 0.05, n = 10, type = 1)

Run the code above in your browser using DataLab