You must not have been outside of the UK for more than 540 days, roughly 10 months during the 10 year period.