A residential inpatient program requires the individual to live full time at a facility for a period of time after the withdrawal phase is completed, typically one to three months. Programs with longer duration are often known as therapeutic communities and usually last at least six months.