(1) A is the aggregate of(a) subject to sections 16.14 and 16.15, 50% of the aggregate of all amounts each of which is expenses incurred by the operator after 28 March 2017 and before that time to consult the communities concerned by a mining operation project, including those incurred before the exploration stage, but not includingi. expenses for community consultations referred to in subparagraph a of subparagraph 1 of the second paragraph of section 16.9,
ii. an expense that may reasonably be considered to be attributable to a mine which has come into production in reasonable commercial quantities or to an actual or potential extension of such a mine, or
iii. an amount paid under an impact and benefit agreement or to enter into such an agreement, and
(b) 50% 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 a; and
(2) B is the aggregate of(a) the aggregate of all amounts each of which is an amount deducted by the operator in computing its annual profit for a fiscal year that ends after 28 March 2017 and before that time, as an allowance for community consultations in respect of expenses incurred after 28 March 2017, under subparagraph h of subparagraph 2 of the second paragraph of section 8, and
(b) 50% of the aggregate of all amounts each of which is an amount of government assistance relating to an amount referred to in subparagraph a of subparagraph 1, that the operator received or was entitled to receive before that time.