The bank applies a redemption schedule that it sets, under which a certain percentage is deducted from the return that has already been paid to you, and not from the principal amount.
The penalty percentage decreases the longer you have held the certificate before breaking it.