The way it works in my state is as follows
Lets assume taxable income of $100,000 and a state tax rate of 10%. PTE Tax = $100,000 x 10%= $10,000.
S Corp pays 4 estimated payments totaling $10,000 which reduces Federal Taxable Income - $100,000 - $10,000 = $90,000 thus reducing shareholders
Federal Income Tax by $10,000 x 24% (marginal tax rate) = $2,400.
In my state the $10,000 is an add back to state taxable income and the $10,000 increases the shareholder state income tax paid.
Net Result is a $2,400 reduction in Federal Income Tax and no change in State Income Tax.