Sometimes Judges allow "day for day." If your daughter has insurance, perhaps she can go to an inpatient drug rehab center. Unfortunately, most are only 14 days or so, many are less and only exist for detox purposes.
There are also halfway houses, 3/4 houses, etc. The more time your daughter...