Form 8960 line 9b is calcing state income tax paid as % income from investments * state tax withheld. Not state tax due. This is wrong if too much/little was withheld.