Calculate the net present value of an investment by considering initial investment, future cash flows, and discount rate.