[ See also Net Present Value @ Wikipedia ]
NPV = \sum_{t=0}^N \frac{R_t}{(1+i)^t} = R_0 + \sum_{t=1}^N \frac{R_t}{(1+i)^t} |
where
t – time moment since the first investment,
– the discount rate, i.e. the return that could be earned per unit of time on an investment with similar risk
N – total number of time steps
R_t = \rm Cash_{in}(t) - \rm Cash_{out}(t) – the net cash flow at time step t.
R_0 = - \rm Cash_{out}(t=0) – the initial investment at time step t = 0.