17. Where a contract is cancelled pursuant to section 13, the seller may retain, as a penalty, the percentage of the price of the contract he is authorized not to deposit in trust under the second paragraph of section 21, and the income generated before the cancellation by the amounts deposited in trust for the buyer, after deducting the part of the income that must be held in trust pursuant to section 27.