Early withdrawal fee is quite complex..
From PTSB Fees and Charges (page 56...
)
The early withdrawal charge is (1% x Amount withdrawn x Remaining term) ÷ 365 or an amount equal to the funding loss (if applicable), whichever is the greater. A minimum of €20 applies. Funding Loss is calculated using the formula (AxTxD) ÷ 365 where: A = the amount withdrawn T = the remaining term D = the difference in the prevailing market rate of interest for a term equivalent to the period remaining and the rate applicable at the date of opening the account.