net_present_value
Compute the net present value of a periodic cashflow series using a discount rate and optional currency formatting, to assess investment profitability.
Instructions
Net Present Value (discounted cash flow) of a periodic cashflow series.
NPV = sum(CF_t / (1 + rate)^t), t = 0..n. Index 0 is period 0 (typically the negative initial investment).
Args: rate: Discount rate per period as a decimal (0.10 = 10%). cashflows: List of >= 2 numbers, e.g. [-10000, 3000, 4200, 6800]. currency: ISO code for formatting.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rate | Yes | ||
| currency | No | USD | |
| cashflows | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||