There’s no specific time requirement. It’s based on a facts and circumstances test. However, spending less than 6 months in California and establishing strong ties to your new state can help support your non-resident status.