This calculates a matrix of monthly loan payments based on the initial principal, seed interest rate, and type of loan. Clicking on a loan amount in the matrix will produce an amortization table with totals.
I asked AI to convert my server side perl script into Javascript and this is what it produced - with a few extra modifications.
Enjoy!