In the case of a trust which is subject to subpart C, the amount of the accumulation distribution of such trust for a taxable year shall be deemed to be an amount within the meaning of paragraph (2) of distributed on the last day of each of the preceding taxable years, commencing with the earliest of such years, to the extent that such amount exceeds the total of any undistributed net income for all earlier preceding taxable years. The amount deemed to be distributed in any such preceding taxable year under the preceding sentence shall not exceed the undistributed net income for such preceding taxable year. For purposes of this subsection, undistributed net income for each of such preceding taxable years shall be computed without regard to such accumulation distribution and without regard to any accumulation distribution determined for any succeeding taxable year.
If any portion of an accumulation distribution for any taxable year is deemed under subsection (a) to be an amount within the meaning of paragraph (2) of distributed on the last day of any preceding taxable year, and such portion of such distribution is not less than the undistributed net income for such preceding taxable year, the trust shall be deemed to have distributed on the last day of such preceding taxable year an additional amount within the meaning of paragraph (2) of . Such additional amount shall be equal to the taxes (other than the tax imposed by section 55) imposed on the trust for such preceding taxable year attributable to the undistributed net income. For purposes of this subsection, the undistributed net income and the taxes imposed on the trust for such preceding taxable year attributable to such undistributed net income shall be computed without regard to such accumulation distribution and without regard to any accumulation distribution determined for any succeeding taxable year.
If any portion of an accumulation distribution for any taxable year is deemed under subsection (a) to be an amount within the meaning of paragraph (2) of distributed on the last day of any preceding taxable year and such portion of the accumulation distribution is less than the undistributed net income for such preceding taxable year, the trust shall be deemed to have distributed on the last day of such preceding taxable year an additional amount within the meaning of paragraph (2) of . Such additional amount shall be equal to the taxes (other than the tax imposed by section 55) imposed on the trust for such taxable year attributable to the undistributed net income multiplied by the ratio of the portion of the accumulation distribution to the undistributed net income of the trust for such year. For purposes of this subsection, the undistributed net income and the taxes imposed on the trust for such preceding taxable year attributable to such undistributed net income shall be computed without regard to the accumulation distribution and without regard to any accumulation distribution determined for any succeeding taxable year.
If adequate records are not available to determine the proper application of this subpart to an amount distributed by a trust, such amount shall be deemed to be an accumulation distribution consisting of undistributed net income earned during the earliest preceding taxable year of the trust in which it can be established that the trust was in existence.
No refund or credit shall be allowed to a trust or a beneficiary of such trust for any preceding taxable year by reason of a distribution deemed to have been made by such trust in such year under this section.