Mmm
First I think that you need to work out the monthly payments.
This is a present value of an ordinary annuity problem
PV=400000, i=0.05/12= 1/240 n=360
$$\\400000=C*\frac{1-(1+1/240)^{-360}}{1/240}\\\\
C=400000\div\frac{1-(1+1/240)^{-360}}{1/240}\\\\$$
$${\frac{{\mathtt{400\,000}}}{\left({\frac{\left({\mathtt{1}}{\mathtt{\,-\,}}{\left({\mathtt{1}}{\mathtt{\,\small\textbf+\,}}{\frac{{\mathtt{1}}}{{\mathtt{240}}}}\right)}^{\left(-{\mathtt{360}}\right)}\right)}{\left({\frac{{\mathtt{1}}}{{\mathtt{240}}}}\right)}}\right)}} = {\mathtt{2\,147.286\: \!492\: \!048\: \!555\: \!939\: \!3}}$$
ok so the monthly payment is $2147.29
Mmm
First I think that you need to work out the monthly payments.
This is a present value of an ordinary annuity problem
PV=400000, i=0.05/12= 1/240 n=360
$$\\400000=C*\frac{1-(1+1/240)^{-360}}{1/240}\\\\
C=400000\div\frac{1-(1+1/240)^{-360}}{1/240}\\\\$$
$${\frac{{\mathtt{400\,000}}}{\left({\frac{\left({\mathtt{1}}{\mathtt{\,-\,}}{\left({\mathtt{1}}{\mathtt{\,\small\textbf+\,}}{\frac{{\mathtt{1}}}{{\mathtt{240}}}}\right)}^{\left(-{\mathtt{360}}\right)}\right)}{\left({\frac{{\mathtt{1}}}{{\mathtt{240}}}}\right)}}\right)}} = {\mathtt{2\,147.286\: \!492\: \!048\: \!555\: \!939\: \!3}}$$
ok so the monthly payment is $2147.29