Generally speaking you should not have spent more than 180 days outside the UK in a 12 month period during the period of residence in the UK. The length of time you must spend in the UK before being ...