WHAT IS USED TO CALCULATE THE 31% FOR MORTGAGE RESTRUCTURING?

What is utilised to intend the 31% for mortgage restructuring?
My actualised mortgage commercialism is inferior than 31% of my monthly income, however, my mortgage nonnegative escrow is greater than 31%. Which counts?