Inpatient programs generally last around 28 days to 6 months.

https://recoverypartnernetwork.com/treatment/inpatient