(b) B is the product obtained by multiplying the appropriate fraction described in the third paragraph by the aggregate of all amounts each of which is an amount received before that time in respect of a tax-exempt dividend on affiliate shares or on shares for which affiliate shares were substituted, by i. the corporation resident in Canada,
ii. a corporation related to the corporation resident in Canada,
iii. a foreign affiliate of the corporation resident in Canada, or
iv. a foreign affiliate of a corporation related to the corporation resident in Canada; and
(c) C is the aggregate of i. 3/4 of the aggregate of all amounts each of which is the amount by which a loss, determined without reference to this chapter, of a corporation or foreign affiliate described in subparagraph b for a taxation year that ended before 28 February 2000, from another disposition at or before that time of affiliate shares or shares for which affiliate shares were substituted, was reduced under section 591 in respect of the tax-exempt dividends referred to in subparagraph b,
ii. the product obtained by multiplying the aggregate of all amounts each of which is the amount by which the loss, determined without reference to this chapter, of a corporation or foreign affiliate described in subparagraph b for a taxation year that includes 28 February 2000 or 17 October 2000 or that began after 28 February 2000 and ended before 17 October 2000, from another disposition at or before that time of affiliate shares or shares for which affiliate shares were substituted, was reduced under section 591 in respect of the tax-exempt dividends referred to in subparagraph b, by the fraction that is the fraction in paragraphs a to d of section 231.0.1 that applies to the corporation or foreign affiliate for the year,
iii. 1/2 of the aggregate of all amounts each of which is the amount by which the loss, determined without reference to this chapter, of a corporation or foreign affiliate described in subparagraph b for a taxation year that began after 17 October 2000, from another disposition at or before that time of affiliate shares or shares for which affiliate shares were substituted, was reduced under section 591 in respect of the tax-exempt dividends referred to in subparagraph b,
iv. the aggregate of all amounts each of which is the amount by which an allowable capital loss, determined without reference to this chapter, of a corporation or foreign affiliate described in subparagraph b, from a disposition at or before that time by a partnership of affiliate shares or shares for which affiliate shares were substituted, was reduced under section 591.1 in respect of the tax-exempt dividends referred to in subparagraph b,
v. 3/4 of the aggregate of all amounts each of which is the amount by which a loss, determined without reference to this chapter, for a taxation year that ended before 28 February 2000, from a disposition at or before that time by a corporation or foreign affiliate described in subparagraph b of an interest in a partnership, was reduced under section 591.2 in respect of the tax-exempt dividends referred to in subparagraph b,
vi. the product obtained by multiplying the aggregate of all amounts each of which is the amount by which a loss, determined without reference to this chapter, for a taxation year that includes 28 February 2000 or 17 October 2000 or that began after 28 February 2000 and ended before 17 October 2000, from a disposition at or before that time by a corporation or foreign affiliate described in subparagraph b of an interest in a partnership, was reduced under section 591.2 in respect of the tax-exempt dividends referred to in subparagraph b, by the fraction that is the fraction in paragraphs a to d of section 231.0.1 that applies to the corporation or foreign affiliate for the year,
vii. 1/2 of the aggregate of all amounts each of which is the amount by which a loss, determined without reference to this chapter, for a taxation year that began after 17 October 2000, from a disposition at or before that time by a corporation or foreign affiliate described in subparagraph b of an interest in a partnership, was reduced under section 591.2 in respect of the tax-exempt dividends referred to in subparagraph b, and
viii. the aggregate of all amounts each of which is the amount by which an allowable capital loss, determined without reference to this chapter, of a corporation or foreign affiliate described in subparagraph b, from a disposition at or before that time by a partnership of an interest in another partnership, was reduced under this section in respect of the tax-exempt dividends referred to in subparagraph b.