Undistributed earnings
(3) Undistributed earnings(i) In general. For purposes of this 1.1294-1T the term undistributed earnings means the excess, if any, of the amount includible in gross income by reason of section 1293(a) for the shareholder's taxable year (the includible amount) over the sum of (A) the amount of any distribution to the shareholder during the QEF's taxable year and (B) the portion of the includible amount that is attributable to stock in the QEF that the shareholder transferred or otherwise disposed of before the end of the QEF's year. For purposes of this paragraph, a distribution will be treated as made from the most recently accumulated earnings and profits. (ii) Effect of a loan, pledge or guarantee. A loan, pledge, or guarantee described in 1.1294-1T(e) (2) or (4) will be treated as a distribution of earnings for purposes of paragraph (b)(3)(i)(A). If earnings are treated as distributed in a taxable year by reason of a loan, pledge or guarantee described in 1.1294-1T(e) (2) or (4), but the amount of the deemed distribution resulting therefrom was less than the amount of the actual loan by the QEF (or the amount of the loan secured by the pledge or guarantee), earnings derived by the QEF in a subsequent taxable year will be treated as distributed in such subsequent year to the shareholder for purposes of paragraph (b)(3)(i)(A) by virtue of such loan, but only to the extent of the difference between the outstanding principal balance on the loan in such subsequent year and the prior years' deemed distributions resulting from the loan. For this purpose, the outstanding principal balance on a loan in a taxable year shall be treated as equal to the greatest amount of the outstanding balance at any time during such year.