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. Physicians decide when a person is stable. Good programs explain their reasoning clearly. A licensed treatment provider can give realistic guidance.