Greg Snidow (2/27/2015)
ScottPletcher (2/26/2015)
Change to money rather than more decimal places. I believe the law now restricts to 4 decimal places when calculating most interest accumulation.Scott, I tried money, float, decimal and real in various combinations to no avail. Actually the real datatype got me closest 0 at the last payment, and it was still off by $1.09. I think it all goes back to a comment Jeff made earlier, and that is that bankers use software that accounts for slight differences in the end.
Ok, so I have done a bunch of research and testing and have some interesting info to share.
First, I found 28 online amortization calculators. There might be more but there is only so much time in a day (and even less-so with 3 young kids ;-)).
http://www.realtor.com/mortgage/tools/mortgage-calculator/
http://www.calcxml.com/calculators/mortgage-calculator
http://www.mortgagecalculator.net/amortization/
https://www.quickenloans.com/mortgage-calculator/mortgage-amortization-calculator
http://www.bloomberg.com/personal-finance/calculators/mortgage/
https://www.bankofamerica.com/home-loans/mortgage/mortgage-payment-calculator.go
https://apply.chase.com/mortgage/CRQ/CustomRateQuote.aspx
http://bretwhissel.net/cgi-bin/amortize
http://finance.yahoo.com/calculator/real-estate/hom03/
https://www.wellsfargo.com/mortgage/rates/calculator/
http://www.trulia.com/mortgage-calculators/03/mortgage-payments/ (uses CalcXML.com)
http://www.mortgagecalculator.org/
http://www.bankrate.com/calculators/mortgages/mortgage-calculator.aspx
http://www.interest.com/mortgage/calculators/mortgage-calculator/
http://www.amortization-calc.com/
http://www.calculators4mortgages.com/mortgage-calculator/amortization-schedule-chart
http://usmortgagecalculator.org/
https://www.drcalculator.com/mortgage/
http://www.calculator.net/mortgage-calculator.html
http://www.mortgagecalculators.info/calc-monthlypayment.php
Now, I have taken a closer look at the "quirky update" method of doing this that is posted on Page 1 of this topic and there are a few notes to share (and if it is not clear, this is purely constructive and not meant in any snide or negative manner).
LOAN_INTEREST = (dbo.fnPaymentCalc(...)*loan_periods) - loan_amtThis is not how it should be calculated, and is similar to how all of those online calculators got it wrong. Interest is calculated each month and rounding is applied. A penny up in one month, a penny down in another, etc., but not always evenly applied. Also, the Principal is not simply divided by the number of payments. The main factor is the Interest and then deduct the Principal from that each month. The final month will often have a small amount of Principal left over that needs to be added to the final payment. And this is not just a penny or two. Go to that dinkytown.net link and use the following values:
Principal = 53707
Interest = 15.497
Years = 13
Then click "View Report" and go to the bottom. The final payment is $2.00 more than the initially calculated amount. (I would normally also recommend trying the Math_CompoundAmortizationSchedule TVF in SQL#, but the current version--3.3--has some minor issues that I have now corrected and will appear in the next release).
This might all be fixable in the current quirky update method with some changes, but I don't have time to try that myself.
Take care,
Solomon...
SQL# — https://SQLsharp.com/ ( SQLCLR library ofover 340 Functions and Procedures)
Sql Quantum Lift — https://SqlQuantumLift.com/ ( company )
Sql Quantum Leap — https://SqlQuantumLeap.com/ ( blog )
Info sites — Collations • Module Signing • SQLCLR