Calculation of IRR and NPV