Hi, I am filing joint state return for NJ & NY, we are part year residents of both and have non-resident income from Oregon, how do we split it between NJ and NY ?

I lived in NY till Oct and NJ from Oct-Dec, my wife has income from Oregon (we are filing non resident return there)