An article in Psychology Today cites studies that show most relapses happen within the first 90 days of abstinence, which is why attending a rehab program lasting at least 3 months may be most beneficial.