What is the equation to find monthly payments on a house?

I need to get the equation to find the monthly payments on a house with a 5% interest rate over 30 years. The house is worth 139,900$ and this is a project so please don’t direct me to any loan calculators on the web.

Register New Account
Reset Password