PV: Calculate Present Value of Cash Flows

Description Usage Arguments Value Author(s) Examples

View source: R/PV.R

Description

Given an interest rate, the number of payment periods, the periodic payments, and the future value, calculate the present value.

Usage

1
PV(rate, nper, pmt, fv)

Arguments

rate

Interest rate you would like used when discounting.

nper

Number of periods to use when discounting the future value.

pmt

Vector of future cash flows (should match nper). Starts at t = 1.

fv

Future amount you wish to discount.

Value

Returns the present value of cash flows given.

Author(s)

Nick Bultman, njbultman74@gmail.com, March 2021

Examples

1
2
3
PV(0.05, 5, c(50, 50, 50, 50, 50), 100)
PV(0.01, 3, c(50, 100, 150), 100)
PV(0.03, 10, 0, 5000)

njbultman/xlsxFunctions documentation built on Aug. 8, 2021, 3:14 p.m.