(b) the total of i. that part of the taxpayer’s income for the year, determined without reference to sections 371 and 418.1.10, that can reasonably be attributed to the production of petroleum or natural gas from a natural accumulation of petroleum or natural gas outside Canada or from oil or gas wells outside Canada, or to the production of minerals from mines outside Canada,
ii. the taxpayer’s income for the year from royalties in respect of a natural accumulation of petroleum or natural gas outside Canada, an oil or gas well outside Canada or a mine outside Canada, determined without reference to sections 371 and 418.1.10, and
iii. the aggregate of all amounts each of which is an amount, in respect of a foreign resource property that has been disposed of by the taxpayer, equal to the amount by which the amount included in computing the taxpayer’s income for the year by reason of paragraph a of section 330 in respect of that disposition exceeds the aggregate of all amounts each of which is that portion of an amount deducted under section 418.17 in computing the taxpayer’s income for the year that can reasonably be considered to be in respect of the foreign resource property, but cannot reasonably be considered to have reduced the amount otherwise determined under subparagraph i or ii in respect of the taxpayer for the year.