You are obsessing with tax
If you live in Thailand for 180 days or more you become a Thai tax resident
But
With that comes Age related questions
Do you get a pension ?
Depending on what country you are from
There are 60 countries that have DTA agreements with Thailand
You can try and get some free advice here
********************************
There are also videos on it
************************************************