In an upfront-return deposit, the bank pays you the return at the start of the term, so part of it covers months that have not passed yet. If you break it early, the bank usually recalculates what you actually earned for the period held (often at a lower rate) and recovers the difference from the deposit's principal.
A hypothetical example per 100 EGP: a one-year deposit with an upfront return of 9 EGP, broken after 6 months, with terms that price that period at a reduced 7% a year. 3.5 was due, so the difference of 5.5 is deducted from the principal and you get back only 94.5 at the break, even though you received the 9 at the start.
So an upfront return is not 'received and done' if the deposit is broken. The exact method, and when breaking is first allowed, differ from one deposit to another. Read the penalty method and the worked example in the key-facts statement, and ask the bank for the figure in your case before breaking.