Paying down debt earns a guaranteed return equal to its interest rate; investing earns an uncertain return. This compares the value each choice builds over your horizon using the same monthly amount. It ignores taxes and risk, so weigh the certainty of debt payoff against market ups and downs.