On California Schedule CA540NR, in column E of that form is where you enter your CA source income only.
On line 45 of that schedule, you will see where it asks you to bring down your total CA income from line 37, column E. That is the amount your tax is then figured on. Your tax is not calculated on your entire income from all states.
If this was helpful please press the Accept button.
Thank you Venkat