Skip to content
@teakit/finance documentation

Net present value

Discount a series of regularly spaced cash flows.

Example

Use NPV when the cash flows are one period apart. Enter the rate as a percentage per period and put the initial investment first.

ts
import { NPV } from "@teakit/finance";

const value = NPV(10, [-100, 110]); // 0

The initial outlay is 100. At a 10% discount rate, receiving 110 one period later has a present value of 100, so the net present value is zero.