After you file

not sure MD specifics so check the tax code but this can happen when estimated tax wasn't paid timely even if you overpaid.... if you didn't pay the estimated tax evenly thru the year to meet the safe harbor amount (lesser of 90% of 2024 tax or ?110% of 2023 tax), you may be assessed an underpayment penalty for Q1, Q2 etc, even tho by the end you paid the full amount or had a refund.  An overpayment earlier in the year will carry forward to eliminate underpayment later in the year, but no amount of overpayment later in the year can eliminate an underpayment earlier in the year but stops the penalty interest accruing.

 

in your example you need to have paid 25000x90%=22500 (assume this is the lesser safe harbor option), less withholding 21000 = 1500 ES, $375 due per quarter.  If you didn't pay $5k til Q4 day, you still would incur underpayment penalty for $375 for Q1-3.