oh terpe, one question,, sorry

so if my visa is expiring in 9th of september that means i need to atleast leave 28 days for them to process the ILR? as in i should apply around August?