The UK statutory residence test

The UK has a statutory test for tax residence. Details of the test are set out in this note.