MortgageGirl
New member
- Joined
- Dec 16, 2005
- Messages
- 4
Hello!
I'm a programmer, and I'd like to calculate the APR in my application. I'm trying to understand the formulas outlined in http://ecfr.gpoaccess.gov/cgi/t/text/te ... 18&idno=12. I've seen it reworked (http://members.aol.com/stevef88/discuss/apr.htm - I found this from a search on this message board; thank you):
P = (A-F)*r/[1 - (1+r)-N]
I'd also like to include odd days interest when applicable (I've seen it as A=[1/(1+fi)(1+i)^t][?not sure what goes here?] - how would that be incorporated into the equation above? I understand how to calculate APR in excel using the RATE or IRR function, but I'm trying to understand how to actually loop through the iteration by hand (well in code really), including the odd days interest. I may also have uneven payment flows at different interest rates (for ARM mortgages)…
I have the rate, payment schedule, loan amount & fees available to plug into the equation; I understand parts of the equation but I just can't figure out how to put it all together. What is the equation solving for...what needs to loop...what numbers to plug in & where....ect....
Does anyone know where I could get more information? I've read Reg Z appendix j about 3 times & just get more confused….any help is appreciated!!!
Thanks for your time,
Sarah
I'm a programmer, and I'd like to calculate the APR in my application. I'm trying to understand the formulas outlined in http://ecfr.gpoaccess.gov/cgi/t/text/te ... 18&idno=12. I've seen it reworked (http://members.aol.com/stevef88/discuss/apr.htm - I found this from a search on this message board; thank you):
P = (A-F)*r/[1 - (1+r)-N]
I'd also like to include odd days interest when applicable (I've seen it as A=[1/(1+fi)(1+i)^t][?not sure what goes here?] - how would that be incorporated into the equation above? I understand how to calculate APR in excel using the RATE or IRR function, but I'm trying to understand how to actually loop through the iteration by hand (well in code really), including the odd days interest. I may also have uneven payment flows at different interest rates (for ARM mortgages)…
I have the rate, payment schedule, loan amount & fees available to plug into the equation; I understand parts of the equation but I just can't figure out how to put it all together. What is the equation solving for...what needs to loop...what numbers to plug in & where....ect....
Does anyone know where I could get more information? I've read Reg Z appendix j about 3 times & just get more confused….any help is appreciated!!!
Thanks for your time,
Sarah