Application of subsection in case of partnerships and S corporations
In the case of a partnership or S corporation—
(A)#
this subsection shall be applied at the partner or shareholder level, and
(B)#
each partner’s or shareholder’s proportionate share of the items of income, gain, or deduction of the partnership or S corporation for any taxable year from farming businesses attributable to the partnership or S corporation, and of any applicable subsidies received by the partnership or S corporation during the taxable year, shall be taken into account by the partner or shareholder in applying this subsection to the taxable year of such partner or shareholder with or within which the taxable year of the partnership or S corporation ends.
The Secretary may provide rules for the application of this paragraph to any other pass-thru entity to the extent necessary to carry out the provisions of this subsection.