Based on the information you've provided, it sounds like you may qualify for a 240-hour visa-free transit in Beijing. This policy allows travelers with a valid UK passport, flying from one foreign country to another, to stay in Beijing for up to 144 hours without a visa. However, it's essential to ensure that your transit fits the exact requirements.