When you receive some extra money it may be difficult to determine whether you should invest the funds or use them to pay debt. One financial theory suggests that if your after-tax return on investments is greater than the after-tax cost of your debt, you should invest. Use this calculator to help analyze a hypothetical situation.