"To calculate the penalty" means to determine the amount of punishment or consequence that should be imposed for breaking a rule or law. Full definition
How to calculate the penalties on early withdrawals from your 401 (k), including the 10 % tax penalty, vesting and income tax. (investopedia.com)
Apparently, some lenders will include the money you saved by going with a discounted rate and add it back into the formula when calculating the penalty. (moneysense.ca)
If this is the case, ask about bridge mortgages and don't forget to calculate any penalties into your overall costs. (mortgagetalkcanada.ca)