Cal. Penal Code § 4852.03
(a) The period of rehabilitation commences upon the discharge of the petitioner from custody due to his or her completion of the term to which he or she was sentenced or upon his or her release on parole, postrelease community supervision, mandatory supervision, or probation, whichever is sooner. For purposes of this chapter, the period of rehabilitation shall constitute five years’ residence in this state, plus a period of time determined by the following rules:
(2)