(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 the affiliate share or on a share for which the affiliate share was 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 ofi. 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 the affiliate share or a share for which the affiliate share was substituted, was reduced under this section in respect of the tax-exempt dividends referred to in subparagraph b,
ii. 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 the affiliate share or a share for which the affiliate share was substituted, was reduced under section 591 in respect of the tax-exempt dividends referred to in subparagraph b,
iii. 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 the affiliate share or a share for which the affiliate share was 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,
iv. 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 the affiliate share or a share for which the affiliate share was substituted, was reduced under section 591 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 section 591.3 in respect of the tax-exempt dividends referred to in subparagraph b.