Hi Amitia Wood,
The dates you mention cover 2 different tax years and as you only left the UK in July 23, it will be the 23/24 tax year that you are looking at, this cannot be determined as yet as the year has not finished for you to confirm your number of days in each country.
For the 22/23 tax year, if you spent more than 183 days in the UK you are resident here. please see further guidance at
RDR3: Statutory Residence Test
Thank you.