I am new to this topic and confused too. How do I calculate Net Present Value when I have a total project period of 20 years but the cash in flow changes after 11.6 years and from 11.7 to 20th year, there is a different cash flow. I am programming this. I use the formula Rt/(1+i)^i where Rt is the cash flow and i is the interest rate. I calculate with the regular formula for the 1st 11 years and from 13 to 20 years. Again I use the formula above for 11.1 to 11.7 years and 11.7 to 12 years and add them all together. But I don't seem to be getting the right answer.