Hi PAT
The qualifying period is 2 years (24 months) living in UK
You can apply for ILR 28 days before the end of the qualifying period