Hi Eunice Siu
You would use the date you arrived in the UK to work out the number of days in the UK.
The statutory residence tests are designed to help you work out if you are 'tax resident' for the whole tax year or 'tax non-resident' for the whole tax year.
If you are tax resident for the whole tax year, a self-assessment tax return would be required for you to declare your world-wide income in the tax year; unless split year treatment applies to you.
If it does, you will need to complete a self-assessment tax return, to claim split year treatment and declare your UK/world-wide income and capital gains from the date you arrived in the UK. If you are tax non-resident for the whole tax year, then a tax return would only be required where your UK sources of income or capital gains for the whole year, needs to be reported in a tax return.
Please see Guidance at:
Tax on foreign income: UK residence and tax
Thank you.