Hi thank you for your question. Please remember to RATE my answer OK SERVICE, GOOD SERVICE OR EXCELLENT SERVICE so I can get credited for my time.
When you left the UK on 26 June 2008 you can not count any period before that as when you leave the UK you break the chain of continuous residency in the UK for the 5 years and must start again to build up the 5 years.
Your time which counts for indefinite leave to remain begins from 27 Aug 2008, therefore you must have been in the UK until 27 August 2013 to apply for indefinite leave to remain.
The fact that your visa was issued on 5 August 2008 does not matter, it is the date you entered and undertook your employment. Therefore you need to apply for further leave to remain in the UK to make up the days which you fall short.
I hope this answers your question, if so kindly rate my answer positively so I can get credited for my time.
DISCLAIMER: Answers from Experts on JustAnswer are not substitutes for the advice of an attorney. JustAnswer is a public forum and questions and responses are not private or confidential or protected by the attorney-client privilege. The Expert above is not your attorney, and the response above is not legal advice. You should not read this response to propose specific action or address specific circumstances, but only to give you a sense of general principles of law that might affect the situation you describe. Application of these general principles to particular circumstances must be done by a lawyer who has spoken with you in confidence, learned all relevant information, and explored various options. Before acting on these general principles, you should hire a lawyer licensed to practice law in the jurisdiction to which your question pertains.
The responses above are from individual Experts, not JustAnswer. The site and services are provided “as is”. To view the verified credential of an Expert, click on the “Verified” symbol in the Expert’s profile. This site is not for emergency questions which should be directed immediately by telephone or in-person to qualified professionals. Please carefully read the Terms of Service (last updated February 8, 2012).