30-day and 90-day Detox

What are the roles of 30-day and 90-day detoxification programs in the addiction treatment continuum of care?