How to calculate NPV
<p>i want to calculate the NPV ( Net Present Value ) using PHP.</p>

<p>Below is the detail which i have.</p>

<pre>
    discount rate : 15%

    Cash Flow Values per Year:

    Year 1: 110000
    Year 2: 122000 
    Year 3: 135200
    Year 4: 149720
    Year 5: 157706
    Year 6: 166091
</pre>

<p>NPV Formula which i am using.</p>

<pre><code>NPV = sum of all years( (Ci)/(1+r)^i)

i=1,2,3,4,5,...
Ci= Cash Flow for year i
r=rate of discount
</code></pre>

<p>Any help.</p>

<p>Thanks In advance</p>

<p>Avinash</p>
