Under section 41 of the Revenue Code an individual Thai citizen or foreigner who lives in Thailand for one or more periods totalling at least 180 days in any tax (calendar) year is, for tax purposes, deemed a resident of Thailand and subject to tax on all assessable income derived from sources within the country, whether paid within or outside Thailand, and on assessable income derived from foreign sources to the extent that it is brought into Thailand in a year in which income is received. A non-resident individual is subject to tax only on assessable income from Thai sources, regardless of payment location.