How old do you have to be to drop out of high school in California?

The compulsory education law sets the age at 18. Or at least 16 and have passed the California High School Proficency Exam, and have parental permission (this stipulation usually relates to students who are home schooled). (Ca. Ed. Code 482.00)