calc_npv: Net Present Value (NPV)

View source: R/calculators.R

calc_npvR Documentation

Net Present Value (NPV)

Description

Calculates the net present value of a series of cash flows.

Usage

calc_npv(rate, cashflows)

Arguments

rate

Discount rate per period (decimal).

cashflows

Vector of cash flows (first is typically negative investment).

Value

Net present value.

Examples

calc_npv(rate = 0.1, cashflows = c(-1000, 300, 400, 500))


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