With the mortgage-calculator package you can obtain the maximum payment you should be commiting to according to a risk factor, you can obtain the mortgage and the amortization table.
To see the details of the project you can go to the github page
You can play with the sliders to update live the results of the mortgage calculations or update the value directly on the input.
For this example I have used the standard values of the formula with a risk of 36%
|Total Interest:||Mortgage:||House Price:||Payment:|