Discount regularly spaced future cash flows to today and compare their present value with an immediate investment.
The frame below runs the same code as this page, in the reader's own browser. Nothing is sent to us, and nothing is sent to you.
Pick a dark background and the text and panels follow it, so the frame stays readable on a dark page.
Each amount is divided by one plus the discount rate raised to its zero-based period, so the first flow occurs immediately and is not discounted. Payback uses undiscounted cumulative cash, while profitability index compares discounted inflows with the absolute first outlay; 10% is only an editable hurdle-rate scenario.
Cash flows: [-1000,300,400,500,600] Rate percent: 10
NPV: 388.77 Profitable: yes Total undiscounted: 800 Payback years: 3 Profitability index: 1.39
Capital-budgeting proposals, property cash-flow models, and spreadsheet audits use regularly spaced inflows and outflows with an explicit opportunity-cost rate.