(b) the amount of the transferor’s loss from the disposition, determined without reference to this paragraph and sections 237, 240, 241 and 288, is deemed to be a loss of the transferor from a disposition of the particular capital property at the time that is immediately before the first time, after the time of disposition,i. at which a 30-day period begins throughout which neither the transferor nor a person affiliated with the transferor owns the substituted property, or a property that is identical to the substituted property and that was acquired after the day that is 31 days before the period begins,
ii. at which the substituted property would, if it were owned by the transferor, be deemed under Chapter I of Title I.1 of Book VI or section 999.1 to have been disposed of by the transferor,
iii. that is immediately before control of the transferor is acquired by a person or group of persons, where the transferor is a corporation,
iv. at which the transferor or a person affiliated with the transferor is deemed under Division XII of Chapter IV to have disposed of the substituted property, where the substituted property is a debt or a share of the capital stock of a corporation, or
v. at which the winding-up of the transferor begins, other than a winding-up referred to in section 556, where the transferor is a corporation; and
(c) for the purposes of subparagraph b, where a partnership otherwise ceases to exist at any time after the time of disposition,i. the partnership is deemed not to have ceased to exist until the time that is immediately after the first time described in subparagraphs i to v of subparagraph b, and
ii. each person who was a member of the partnership immediately before the partnership would, but for this paragraph, have ceased to exist is deemed to remain a member of the partnership, until the time that is immediately after the first time described in subparagraphs i to v of subparagraph b.