mortgage rate calculator yahoo
Visual FoxPro? Help?
I need the Visual FoxPro code for a mortgage payment calculator. The information I have the amount to be financed, and interest rate Length of years. I need to calculate the payment. Then the differance between the two payments are to give me a result …. Can you help? Ondreforsure@yahoo.com anyone can make me physically the code, and e-mail to me? Let me know what it will take …
I did a search for "JavaScript mortgage calculator" and some sample source code was for a JavaScript version of a calculator. Then I built it into a VFP function that should do it is rusty (my VFP, but it should work): ********************** Function CalcPayment LPARAMETERS tyPrinciple tnRate, tnYears tnRate local tmp = (tnRate / 100) / 12 = tmp * tyPrinciple tnRate tmp = tmp / (1 – (1 + tnRate) ^ (TnYears * -12)) tmp = floor (tmp * 100) / 100 return tmp ***************** ***** The parameters are in principle (cost minus deposit), interest rate, and several years for the loan. If you CalcPayment (250000, 7,5, 30) call, it should return 1748.03 (which is your monthly payment.) Call the function with different parameters to obtain, different payments … then find the difference. Good luck.