If rolled in, closing costs increase the new loan amount and accrue interest. If paid upfront, they are added to total cost but not financed.
New financed amount: $304,500
Assumes fixed-rate fully amortizing loans. Taxes, insurance, and PMI are not included here.