From prior reports of Chiang Mai, you can apply for the one year extension of stay as retired Up to 45 days in advance of your current ending date.
Here is a post... and there are others to read by using the Search Tool top of this forum Page....
ENTER Non O Visa extension Chiang Mai
CLICK on it and all posts about it will pop up to read.
****************************************************************************************
**********
*****
*****
*****
4/?mibextid=Nif5oz