You need a pcr or antigen test to board your flight back to the Uk, you need a day 2 pcr test booked for when you arrive back in the Uk. This must be booked and paid before you leave for the Uk as the code you get needs to be added to your passenger locator form which you need to complete from 48 hours from your departure time to the Uk