You can submit your ILR application up to 28 days before you will reach the qualifying period of continuous residence. For example, if your Tier 2 General visa was granted on 30 September 2017, you will reach 5 years continuous residence on 30 September 2022 and will be able to submit your application 28 days before, on 2 September 2022 at the earliest.