The monthly payment formula is:

To find the total amount of the loan we solve this equation for A, then we have:

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:

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