This is obviously very subjective to individuals, and the assignment itself, but roughly I plan around 4 weeks or a month before it is due. I'll kind of do little bits here and there like plan it out and do my research. Then when I come to that two-week window before submission I check how much I have done, what's left to complete and always factor in time so I am not rushing.