(1) A is the aggregate of(a) subject to paragraph c of section 27, as it read before 13 May 1994, the aggregate of all amounts each of which is a deductible expense referred to in paragraph m or n of section 8, as it read before 13 May 1994, and incurred by the operator after 31 December 1964,
(b) subject to sections 16.2 to 16.6, the aggregate of all amounts each of which is a deductible expense incurred by the operator after 12 May 1994 and before 31 March 2010 in respect of exploration, mineral deposit evaluation and mine development work performed in connection with the operator’s mining operation,
(c) 25% of the aggregate of all amounts each of which is an amount referred to in subparagraph b, other than an amount relating to expenses referred to in any of paragraphs c to d of the definition of “eligible expenses” in the first paragraph of section 1029.8.36.167 of the Taxation Act (chapter I-3) that was taken into account in computing an amount that the operator or a legal person that is a partner of the operator is deemed to have paid to the Minister of Revenue for a taxation year, within the meaning of Part I of that Act, under Division II.6.15 of Chapter III.1 of Title III of Book IX of Part I of that Act, that was incurred by the operator after 31 March 1998 and before that time in respect of exploration work performed ini. the territory in which the program entitled “Near North Mineral Exploration Program”, implemented by the Ministère des Ressources naturelles et de la Faune, applies, or
ii. the territory north of the 55°00′ north latitude;
(d) the aggregate of all amounts each of which is an amount repaid by the operator before that time pursuant to a legal obligation to repay, in whole or in part, government assistance relating to an amount referred to in subparagraph a or b, and
(e) 25% of the aggregate of all amounts each of which is an amount repaid by the operator before that time pursuant to a legal obligation to repay, in whole or in part, government assistance relating to an amount referred to in subparagraph c; and
(2) B is the aggregate of(a) the aggregate of all amounts each of which is an amount allowed to the operator as a development allowance under paragraph o of section 8, as it read before 13 May 1994, in computing its annual profit for a fiscal year ending before 13 May 1994,
(b) the aggregate of all amounts each of which is an amount deducted by the operator under paragraph m or n of section 8, as it read before 13 May 1994, in computing its annual profit for a fiscal year ending before 13 May 1994,
(c) the aggregate of all amounts each of which is an amount deducted by the operator under subparagraph e of paragraph 2 of section 8, as it read on 30 March 2010, or subparagraph c of subparagraph 2 of the second paragraph of section 8 in computing its annual profit for a fiscal year ending before that time,
(d) the aggregate of all amounts each of which is an amount of government assistance relating to an amount referred to in subparagraph a or b of subparagraph 1 that the operator received or was entitled to receive before that time, and
(e) 25% of the aggregate of all amounts each of which is an amount of government assistance relating to an amount referred to in subparagraph c of subparagraph 1 that the operator received or was entitled to receive before that time.