For your application, you should not have been out of the UK for more than 450 days in the past 5 years for the 5-year route and 270 for the 3-year route. You must also not have spent more than 90 days outside the UK in the last 12 months.
Additionally, you should have been physically present 12 months ago at the time of your application.