the income of the estate or trust allocable to each. (5) Impact of tenant's option to acquire property (A) In general No Federal income tax benefit shall fail to be allowable to the taxpayer with respect to any qualified middle-income building merely by reason of an option held by the tenants (in cooperative form or otherwise) or resident management corporation of such building or by a qualified nonprofit organization or government agency to purchase the property or all of the partnership interests (other than interests of the person exercising such option or a related party thereto (within the meaning of section 267(b) or 707(b)(1))) relating to the property after the close of the credit period for a price which is not less than the minimum purchase price determined under subparagraph (B). (B) Minimum purchase price For purposes of subparagraph (A), the minimum purchase price under this subparagraph is an amount equal to the principal amount of outstanding indebtedness secured by the building (other than indebtedness incurred within the 5-year period ending on the date of the sale to the tenants). In the case of a purchase of a partnership interest, the minimum purchase price is an amount equal to such interest's ratable share of the amount determined under the preceding sentence. (6) Treatment of rural projects For purposes of this section, in the case of any project for residential rental property located in a rural area (as defined in section 520 of the Housing Act of 1949), any income limitation measured by reference to area median gross income shall be measured by reference to the greater of area median gross income or national non-metropolitan median income. (7) Determination of whether building is Federally subsidized (A) In general Except as otherwise provided in this paragraph, for purposes of this section, a project shall be treated as Federally subsidized for any taxable year if, at any time during such taxable year or any prior taxable year, there is or was outstanding any obligation the interest on