Calculate net present value from cash flows, timing, and a discount rate to compare investment returns and project decisions.