The idea, without the arithmetic
Take your gross monthly income — what you earn before taxes and deductions. Take your total monthly debt payments, including the projected mortgage payment on the home you want to buy. Compare the two.
That comparison is your debt-to-income. It is expressed as a proportion, and it is one of the clearest signals a lender has about whether a payment will be comfortable for you or a stretch.