I am getting other state tax credit. turbo tax is calculating on the full amount that I am liable to pay but I paid less and owe the balance amount.

Should the credit be on the full tax amount(tax deducted + amount owed) or only on the actual tax deducted on W2