How is the state and local income taxes greater than $10,000 calculated?

I paid $17,201 in state and local taxes, I know there is a $10,000 cap, but the state and local taxes greater than $10,000 is showing a negative $12,872 on my return.