I paid estimated local taxes in 2024 for 2024 (and payments for actual taxes due for 2023), what can I deduct on my state taxes for 2024?

Turbo Tax seems to use an amount between the estimated taxes and the lower actual taxes for 2024 - is there a bug?). Note actual local taxes = (state income - deduction of local taxes) (because that is the line on state taxes it uses) x tax rate, sort of circular