It depends on the number of 24-hour days you spent in California.
Usually your state
of residency is the place you intend to be your permanent home. You’re not living in the state for a
temporary purpose. It’s the place you return to after a vacation, business
assignment, or away at school.
You can only have one permanent home. States often refer to this
as your domicile. Some states have a “days test” and if you spend more than a certain number of
days (often 183 days) of the taxable year in their state, they consider you a
resident for that year.
See this link for additional information: Determine
your residency status: Residents, nonresidents, and part-year residents
**Say "Thanks" by clicking the thumb icon in a post
**Mark the post that answers your question by clicking on "Mark as Best Answer"