Good overview of this backwards tax rule.

What You Should Know About California’s Retroactive Tax on SMB Investors
blog.upcounsel.com