I know that I am not supposed to put code here, but I can't remember where else to put it.
It seems that this function should work to find present value, based on a rate, number of payments and monthly payment.
Sub Pv(Rate As Double, Nper As Double, Pmt As Double) As Double
Return Pmt * Power(Rate + 1, Nper) * Rate / (1 - Power(Rate + 1, Nper))
End Sub
When I run this code, I get an answer of 2.01 or so. It should be more like 50,000
PresentValue = Pv(.04/12, 360, -1000)
Please tell me where I am messing up, in addition to putting the code in the body of the thread. I will work on code placement...
It seems that this function should work to find present value, based on a rate, number of payments and monthly payment.
Sub Pv(Rate As Double, Nper As Double, Pmt As Double) As Double
Return Pmt * Power(Rate + 1, Nper) * Rate / (1 - Power(Rate + 1, Nper))
End Sub
When I run this code, I get an answer of 2.01 or so. It should be more like 50,000
PresentValue = Pv(.04/12, 360, -1000)
Please tell me where I am messing up, in addition to putting the code in the body of the thread. I will work on code placement...