After you file

If you are amending, subtract the penalty Line 38 from amount you paid.

Do not try to calculate a new penalty; IRS wlll do that and send you a bill or refund.