(a) the amount for the year, if the individual is resident in Canada throughout the year, or, where the individual is not resident in Canada at any time in the year, for the part of the year throughout which the individual is resident in Canada, by which the total of the individual’s incomes exceeds the total of the individual’s losses from sources situated in a foreign country, computedi. on the assumption that no businesses were carried on by the individual in the foreign country through an establishment situated in that country and no amount was deducted under section 584 in computing the individual’s income for the year,
ii. without taking into account any portion of income that is deductible under paragraph a of section 725 or any of sections 726.26, 737.14, 737.16, 737.18.10, 737.18.34, 737.25 and 737.28, or deducted under any of sections 726.7 to 726.9 and 726.20.2, by the individual in computing the individual’s taxable income for the year, and
iii. without taking into account any income or loss from a source situated in the foreign country, if any income of the individual from the source would be tax-exempt income; is of
(b) the amount by whichi. either, if the individual is resident in Canada throughout the year, the aggregate of the individual’s income for the year and of all amounts each of which is an amount included in computing the individual’s taxable income for the year under section 726.35, 726.43 or 737.17, or, if the individual is not resident in Canada at any time in the year, the amount determined for the year in respect of the individual under the third paragraph of section 23, exceeds
ii. the aggregate of all amounts each of which is an amount deductible under any of sections 725, 725.2 to 725.5, 726.26, 726.28, 737.14, 737.16, 737.16.1, 737.18.10, 737.18.34, 737.21, 737.22.0.0.3, 737.22.0.0.7, 737.22.0.3, 737.22.0.4.7, 737.22.0.7, 737.22.0.10, 737.22.0.13, 737.25 and 737.28, or deducted under any of sections 726.7 to 726.9, 726.20.2, 726.33, 726.42 and 729, in computing the individual’s taxable income for the year.