To pay off or replace a mortgage can be a smart economic plan but understanding…