@Elías *******
I have noticed that in these threads regarding tax, you often refer to the fact that your home country has rules requiring you to pay tax on your income there.
However, you are essentially following your home country's local tax regulations; as soon as you point out that this involves double taxation across two countries, the double taxation agreement takes precedence, and those local rules no longer apply.
The country is OBLIGED to adhere to the established double taxation agreement. Your home country does not automatically have the right to claim more tax, nor does it have a primary right to tax.
Simply put: your home country doesn't have the authority to decide that Thailand doesn't have a right to tax your incone.
Your home country and Thailand must reach an agreement on taxation that ensures you do not pay tax on the same amount in both countries.
And since income tax is significantly lower in Thailand than in Denmark, it is naturally worth striving to ensure that as large a portion as possible is taxed in Thailand.
I don't know if the difference is just as significant between your home country and Thailand —but clearly, if the tax rates are roughly the same, it does not really matter which of the two countries levies the tax.