I don't like this X-Salary rule. It assumes no other large notes, which is more of what mortgage underwriters are caring about (debt-to-income ratios).
Not having two student loan payments and a couple unnecessarily-high car payments (a couple well-to-do millennials surely make possible) could certainly push your mortgage affordability much higher than someone straddle with that debt (but completely able to pay and maintain it).