Cal. Welf. & Inst. Code § 5300
(a) At the expiration of the 14-day period of intensive treatment, a person may be confined for further treatment pursuant to the provisions of this article for an additional period, not to exceed 180 days if one of the following exists: