State tax filing

I'm in a similar situation.  How does CA determine the tax rate?