You did ask for take-home pay but lenders normally use gross when calculating debt to income ratios. Take-home pay can change a lot depending on things like 401k, health insurance and if your W4 withholding is set correctly.
Anyway, when I was stupid new grad I bought a house with a $310k 6.25% 30 yr mortgage, so the payment was $1,900, plus insurance, property taxes, PMI and HOA ending up being around $2,800/mo. That was ~45% of my take-home pay, and it was probably the worst financial decision I've ever made. Somehow I managed to turn things around and get out of that debt hole by doing tons of OT and living frugally until I paid it all off.
I would recommend only ~25% of take-home pay on a mortgage/rent. This gives you some room to spend on other things, or pay extra on the mortgage, or save up for a downpayment.