detention periods