The length of time can vary considerably, from a few days to several years, depending on the child's situation and the decisions of social services.