For the purpose of clause (ii) of the above proviso, the aggregate amount of income tax actually borne by the excess dividend shall be determined as follows : 879 (i) the excess dividend shall be deemed to be out, of the whole or such portion of the undistributed profits of one or more years immediately preceding; the previous year as would be just sufficient to cover the amount of the excess dividend and as have not likewise been taken into account to cover an excess dividend of a preceding year; (ii) such portion of the excess dividend as is deemed to be out of the undistributed profits of each of the said years shall be deemed to have borne tax, (a) if an order has been made under sub section (1) of section 23A of the Income tax Act, in respect of the undistributed profits of that year, at the rate of five annas in the rupee, and (b) in respect of any other year, at the rate applicable to the total income of the company for that year reduced by the rate at which rebate, if any, was allowed on the undistributed profits.