Moving out of California is easy. Stopping California taxes is a different act, and it happens on paper: California keeps treating you as a resident until the record shows otherwise, and the burden of showing otherwise is on the taxpayer to show the FTB's residency determination is wrong; connections are weighed, not counted.
There is no day-count to get under. California defines a resident as anyone present for other than a temporary or transitory purpose — and any domiciliary who leaves for a temporary or transitory purpose. Residency is a question of fact, decided by where your closest connections are, not by a day threshold. That makes the evidence trail — where the pattern of an actual life points — the entire case. Everything on this page exists to answer one question: if FTB asks, does your record hold?