Foreign tax credit calculation question

After I went through the questionnaire for foreign tax credit, I saw that I got a credit of $4089. This is from taxes paid on qualified dividends for a stock from a foreign country.

 

But then in this review stepScreen Shot 2023-10-10 at 2.42.53 PM.png

I believe the amount should be $16335. 

Screen Shot 2023-10-10 at 6.13.07 PM.png

But then upon entering that value, my credit dropped by about $2000. 

 

Why would that happen? What's the calculations going on behind the scene?