Other amounts distributed
All other amounts properly paid, credited, or required to be distributed to such beneficiary for the taxable year. If the sum of—
(A)#
the amount of income for the taxable year required to be distributed currently to all beneficiaries, and
(B)#
all other amounts properly paid, credited, or required to be distributed to all beneficiaries
exceeds the distributable net income of the estate or trust, then, in lieu of the amount provided in the preceding sentence, there shall be included in the gross income of the beneficiary an amount which bears the same ratio to distributable net income (reduced by the amounts specified in (A)) as the other amounts properly paid, credited or required to be distributed to the beneficiary bear to the other amounts properly paid, credited, or required to be distributed to all beneficiaries.