The interest charge determined under this section with respect to any distribution is the amount of interest which would be determined on the partial tax computed under section 667(b) for the period described in paragraph (2) using the rates and the method under section 6621 applicable to underpayments of tax.
For purposes of paragraph (1), the period described in this paragraph is the period which begins on the date which is the applicable number of years before the date of the distribution and which ends on the date of the distribution.
For purposes of this subsection, the term “undistributed income year” means any prior taxable year of the trust for which there is undistributed net income, other than a taxable year during all of which the beneficiary receiving the distribution was not a citizen or resident of the United States.
Notwithstanding section 666, for purposes of this subsection, an accumulation distribution from the trust shall be treated as reducing proportionately the undistributed net income for undistributed income years.
The total amount of the interest charge shall not, when added to the total partial tax computed under section 667(b), exceed the amount of the accumulation distribution (other than the amount of tax deemed distributed by section 666(b) or (c)) in respect of which such partial tax was determined.
The interest charge determined under this section shall not be allowed as a deduction for purposes of any tax imposed by this title.