Investors & landlords

In my case 2021 state taxes withheld were a lot more than 2021 total state tax.  For example purposes lets say I paid 25k in state tax, I only owed 15k and so I will be getting a refund of 10k. 

 

Turbo tax is taking the 25k * % of income from investments.  I would have thought that it should be taking the 15k * % of income from investments.

 

I guess you are saying that next year the 10k refund will end up reducing the amount on line 9b for my 2022 taxes?