I have been tasked with creating a program that will generate an amortization schedule. I have only done a bit of research so far, but I need to calculate out payments, interest per payment and principal per payment. Can any one point me in the right direction to figure this out? While I will be writing this in RPG, I am sure others could make use of this algorithm in the future.
(Update) Okay, so how do I calculate based on a 365 day year?
Here is what I ended up creating. I have posted the whole test program. It is written in RPG, but should be easily be figured out for any other languages.
This code has been tested against our loan calculator. If test vs. Excel, it was off about 32 cents on a $200,000 loan. I am sure that is do to rounding issues.