Have a loan management module where you can automatically generate the table and amortization entries for the same