217.30. A corporation that cannot claim an amount under section 217.27 for a taxation year in respect of a partnership solely because it has disposed of its interest in the partnership is deemed for the purposes of paragraphs a and b of section 217.29 to be a member of the partnership continuously until the end of the taxation year if(a) the corporation disposed of its interest to another corporation related to, or affiliated with, the corporation at the time of the disposition; and
(b) a corporation related to, or affiliated with, the corporation has the partnership interest referred to in paragraph a at the end of the taxation year.