I am not 100% sure but Since your visa is issued on 31st of july 2013 , you should be eligible for ILR 28 days before this date, ie 4th July 2018. So no need to do any extension. But please check with a solicitor. It is the date when the visa is issued that matters, IF you entered UK with in 90 days...