I thought visa -exempt was 45 days still. I read that most offices allow you to apply for an extension when you have 30 days or less left. Bangkok, Phuket and ChiangMai allow you to apply when you have 45 days or less left.
Koh Samui and Jomtien require you to be on the last week of your stay before you can apply.