Deductions & credits

Which mortgage balance amount should be used? The most recent refi Box 2 or the original loan Box 2. Mine are different since I took out some home improvement funds.