State tax filing

I wrote that nonresident  tax is computed  as follows:

  Tax on Calif AGI with the rental income - 

   Tax on Calif AGI without the rental income

I was wrong.  It is computed as follows:

Assuming that  a nonresident is a resident in California, Taxable Income  and Tax is computed.  Then tax on nonresident's income  in California without credit is  computed as

  nonreident's income in California x  (Tax / Taxable Income )