The duration is determined by the court based on the circumstances.