The monthly payment formula is:
![M=A(r(r+1)^n)/((1+r)^n-1)](https://img.qammunity.org/2023/formulas/mathematics/college/z3xw7060kpzsldskkk98sfpr0zezgwz38l.png)
To find the total amount of the loan we solve this equation for A, then we have:
![A=M((1+r)^n-1)/(r(r+1)^n)](https://img.qammunity.org/2023/formulas/mathematics/college/n98lk8qs3ax4f3j5vun9tvbb4gzigmo65b.png)
Now in this formula r is the monthly interest rate, n is the number of payments and M is the monthly mortage, then we have:
![\begin{gathered} A=(1050)((1+(0.045)/(12))^(360)-1)/(((0.045)/(12))((0.045)/(12)+1)^(360)) \\ A=207229.22 \end{gathered}](https://img.qammunity.org/2023/formulas/mathematics/college/5x1qob0gk1ezvre11h0268v58sixra6y9a.png)
Therefore you can get a loan of $207,229.22
You will pay the bank a total of $378,000.
The total interest would be $170770.78