The length of medical detox varies from person to person.
https://www.lahacienda.com/programs/medical-and-detoxification
There is no single timetable for medical detox. The substance, history of use and overall health all play a part. Good programs explain their reasoning clearly. Talk with a professional about your situation.