Under Welfare and Institutions Code section 726, the court may aggregate maximum physical confinement time for a juvenile ward under section 602, including time imposed for previously sustained petitions. Here, the minor was adjudged a ward of the court pursuant to section 602 on six separate occasions. He had exhausted his maximum confinement time on petitions one and two, by the time he of the adjudication of petition six. The court calculated the maximum term based on petitions four through six. The appellate court here affirmed the disposition order. When a minor has exhausted his available confinement time on one or more previously sustained petitions, the court need not include those petitions when the court elects to aggregate the confinement time under section 726.