How do I tell how much I was double taxed?

I live in nj and work in ny. Im trying to file my state taxes and I can’t seem to figure what to put on the sch nj-coj.