year described in subsection (a), over (ii) such taxpayer’s net income tax for such taxable year determined without regard to this section. (B) Net income tax The term net income tax means the regular tax liability reduced by the credits allowed under subparts A, B, and D of part IV of subchapter A. (i) Special rules for S corporation shareholders (1) In general In the case of any S corporation which is a United States shareholder of a deferred foreign income corporation, each shareholder of such S corporation may elect to defer payment of such shareholder’s net tax liability under this section with respect to such S corporation until the shareholder’s taxable year which includes the triggering event with respect to such liability. (2) Triggering event (A) In general In the case of any shareholder’s net tax liability under this section with respect to any S corporation, the triggering event with respect to such liability is whichever of the following occurs first: (i) Such corporation ceases to be an S corporation (determined as of the first day of the first taxable year that such corporation is not an S corporation). (ii) A liquidation or sale of substantially all the assets of such S corporation (including in a title 11 or similar case), a cessation of business by such S corporation, such S corporation ceases to exist, or any similar circumstance. (iii) A transfer of any share of stock in such S corporation by the taxpayer (including by reason of death, or otherwise). (B) Partial transfers of stock In the case of a transfer of less than all of the taxpayer’s shares of stock in the S corporation, such transfer shall only be a triggering event with respect to so much of the taxpayer’s net tax liability under this section with respect to such S corporation as is properly allocable to such stock. (C) Transfer of liability A transfer described in clause (iii) shall not be treated as a triggering event if the transferee enters into an agreement with the Secretary under which such transferee is liable for net tax