(4)Any payment made to a managing or other Director in pursuance of sub-section (1) shall not exceed the remuneration which he would have earned if he had been in office for the unexpired residue of his term or for three years, whichever is shorter, calculated on the basis of the average remuneration actually earned by him during a period of three years immediately preceding the date on which he ceased to hold the office, or where he held the office for a lesser period than three years, during such period:Provided that no such payment shall be made to the Director in the event of the commencement of the winding up of the company, whether before, or at any time within twelve months after, the date on which he ceased to hold office, if the assets of the company on the winding up, after deducting the expenses thereof, are not sufficient to repay to the shareholders the share capital (including the premiums, if any), contributed by them: