Calculating the Net Present Value (NPV)