When you have extra money, should you pay off debt or invest it? This calculator helps you compare the after-tax cost of your debt against the after-tax return on a potential investment — so you can make the decision that makes the most financial sense for your situation.