Which box in W2 determines the state for tax I owe to?

I lived in my parent's place in CA until Nov 1, 2023, and moved to a rented apartment in New York since then. I had not changed the CA mailing address for my 1st employer until I left them end of February, hence they had my CA address. I am filing my taxes as New York resident as I stayed there throughout 2024.

This employer's W2 has the following, hence my question whether Box 15=CA means that I owe taxes to CA and not NY or which box of W2 matters for the state.

  • Box c: Employer's address is Washington DC.
  • Box e: My CA mailing address  (parent's address until 1st Nov 2023  )
  • Box 15: CA
  • Box 14: Other: CASDI 136

 

I entered both NY and CA Turbo Tax returns but answered the question in my CA return that all the income I had earned was outside CA state. Just making sure that is ok as I worried that box 15 shows CA.

 

I checked the Turbo Tax generated pdf. which shows as below:

Box 15a (NY State)=NY, box 16a=0, box 17a =0

Box 15b (Other State)=CA, 16b: Income from the 1st employer, 17b=State income tax withheld by 1st employer