I am taking a course in Coursera and am boggled by a simple NPV function.
Question:
What is the present value of $4,000 per year annuity for 8 years at an interest rate of 6%?
Excel:
=NPV(6%, 4000, 4000, 4000, 4000, 4000, 4000, 4000, 4000)
=$24,839
Numpy_Financial:
npf.npv(0.06, [4000 for i in range(8)])
=$26,329
The excel answer is accepted as correct, and there do not seem to be any viable parameters in numpy_financial NPV function. Does anyone know how to get excel's value in Python?