Does this help? . . .
Quote:
"Whether you’re UK resident usually depends on how many days you spend in the UK in the tax year (6 April to 5 April the following year).
You’re automatically resident if either:
* you spent 183 or more days in the UK in the tax year
* your only home was in the UK - you must have owned, rented or lived in it for at least 91 days in total - and you spent at least 30 days there in the tax year
You’re automatically non-resident if either:
* you spent fewer than 16 days in the UK (or 46 days if you have not been classed as UK resident for the 3 previous tax years)
* you work abroad full-time (averaging at least 35 hours a week) and spent fewer than 91 days in the UK, of which no more than 30 were spent working"
Source:
https://www.gov.uk/tax-foreign-income/residence