When you shop for a mortgage or another loan, one of the key factors a lender takes into consideration is your debt-to-income ratio.