The taxable income of an estate or trust shall be computed in the same manner as in the case of an individual, except as otherwise provided in this part. The tax shall be computed on such taxable income and shall be paid by the fiduciary. For purposes of this subsection, a foreign trust or foreign estate shall be treated as a nonresident alien individual who is not present in the United States at any time.
If a portion of an electing small business trust ceases to be treated as a separate trust under paragraph (1), any carryover or excess deduction of the separate trust which is referred to in section 642(h) shall be taken into account by the entire trust.
For purposes of this subsection, the term “electing small business trust” has the meaning given such term by section 1361(e)(1).