158.8. Section 158.9 applies where a taxpayer’s particular right to receive production to which a matchable expenditure, other than a matchable expenditure no portion of which would, if this division were read without reference to sections 158.7 and 158.9, be deductible under section 158.3 in computing the taxpayer’s income, relates has expired or the taxpayer has disposed of all of the right, otherwise than in a disposition to which subsections 1 and 2 of section 544 or sections 556 to 564.1 and 565 apply, and(a) wherei. during the period that begins 30 days before and ends 30 days after the disposition or expiry, the taxpayer or a person affiliated, or who does not deal at arm’s length, with the taxpayer acquires a right to receive production, in this section and section 158.9 referred to as the “substituted property”, that is, or is identical to, the particular right, and
ii. at the end of the period referred to in subparagraph i, the taxpayer or a person affiliated, or who does not deal at arm’s length, with the taxpayer owns the substituted property; or
(b) during the period that begins at the time of the disposition or expiry and ends 30 days after that time, a taxpayer that had an interest, directly or indirectly, in the right to receive production, has another interest, directly or indirectly, in another right to receive production, which is a tax shelter or a tax shelter investment as defined by section 851.38.