The earliest you can apply is 28 days before your 30th month of stay here in the UK.