interests in the capital and profits of a partnership are owned by members of a single expanded affiliated group at all times during the taxable year of such partnership, the partnership and all members of such group shall be treated as a single taxpayer during such period. (d) Definitions and Special Rules For purposes of this section— (1) Application of section to pass-thru entities (A) Partnerships and s corporations In the case of a partnership or S corporation— (i) this section shall be applied at the partner or shareholder level, (ii) each partner or shareholder shall take into account such person’s allocable share of each item described in subparagraph (A) or (B) of subsection (c)(1) (determined without regard to whether the items described in such subparagraph (A) exceed the items described in such subparagraph (B)), and (iii) each partner or shareholder shall be treated for purposes of subsection (b) as having W–2 wages for the taxable year in an amount equal to such person’s allocable share of the W–2 wages of the partnership or S corporation for the taxable year (as determined under regulations prescribed by the Secretary). (B) Trusts and estates In the case of a trust or estate— (i) the items referred to in subparagraph (A)(ii) (as determined therein) and the W–2 wages of the trust or estate for the taxable year, shall be apportioned between the beneficiaries and the fiduciary (and among the beneficiaries) under regulations prescribed by the Secretary, and (ii) for purposes of paragraph (2), adjusted gross income of the trust or estate shall be determined as provided in section 67(e) with the adjustments described in such paragraph. (C) Regulations The Secretary may prescribe rules requiring or restricting the allocation of items and wages under this paragraph and may prescribe such reporting requirements as the Secretary determines appropriate. (2) Application to individuals In the case of an individual, subsection (a)(2) shall be applied by substituting adjusted gross income for taxable income .