How Canadian lenders decide how much house you can afford: GDS and TDS ratios, the mortgage stress test, down payment and closing costs.