(a) the aggregate of all amounts each of which is an amount that the corporation would be deemed to have paid to the Minister in relation to a qualified expenditure referred to in the first paragraph under Division II.6.0.10 of Chapter III.1 of Title III of Book IX of Part I for a taxation year preceding the repayment year ifi. every amount that is, at or before the end of the repayment year, so refunded, paid or allocated, in respect of an amount included in computing a qualified expenditure of the corporation, or at or before the end of the fiscal period of repayment, in respect of an amount included in computing a qualified expenditure of the partnership, were refunded, paid or allocated in the particular year or the particular fiscal period, as the case may be, and
ii. the agreed proportion, in respect of the corporation for the partnership’s fiscal period that ends in that preceding taxation year, were the same as that for the fiscal period of repayment; and
(b) the aggregate of all amounts each of which isi. a tax that the corporation must pay to the Minister under this section for a taxation year preceding the repayment year in relation to an amount relating to an amount included in computing the corporation’s qualified expenditure that is, directly or indirectly, refunded or otherwise paid to the corporation or allocated to a payment to be made by the corporation, or
ii. a tax that the corporation would be required to pay to the Minister under this section, for a taxation year preceding the repayment year in relation to an amount relating to an amount included in computing the partnership’s qualified expenditure that is, directly or indirectly, refunded or otherwise paid to the partnership or corporation if the agreed proportion in respect of the corporation for the partnership’s fiscal period that ends in that preceding taxation year were the same as that for the fiscal period of repayment.