What is the Golden Timeframe for Hard Drug Use Mitigation?

I know no amount of time is infallible or whatever but in your guy’s experiences, what is the usual time frame that would successfully mitigate frequent heavy drug use? Provided there is zero criminal history related to it of course. 2+ years? Looking at military.