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 which is exempt from tax under section 103 the proceeds of which are or were used (directly or indirectly) with respect to such project or the operation thereof. (B) Special rule for subsidized construction financing Subparagraph (A) shall not apply to any tax-exempt obligation used to provide construction financing for any building if— (i) such obligation (when issued) identified the building for which the proceeds of such obligation would be used, and (ii) such obligation is redeemed before such building is placed in service. (8) Reduction in basis In the case of any building for which a credit is allowable under this section and section 42, the basis of the building shall be reduced by the amount of such credit allowed under subsection (a). (j) Application of at-Risk rules For purposes of this section— (1) In general Except as otherwise provided in this subsection, rules similar to the rules of section 49(a)(1) (other than subparagraphs (D)(ii)(II) and (D)(iv)(I) thereof), section 49(a)(2), and section 49(b)(1) shall apply in determining the qualified basis of any building in the same manner as such sections apply in determining the credit base of property. (2) Special rules for determining qualified person For purposes of paragraph (1)— (A) In general If the requirements of subparagraphs (B), (C), and (D) are met with respect to any financing borrowed from a qualified nonprofit organization, the determination of whether such financing is qualified commercial financing with respect to any qualified middle-income building shall be made without regard to whether such organization— (i) is actively and regularly engaged in the business of lending money, or (ii) is a person described in section 49(a)(1)(D)(iv)(II). (B) Financing secured by property The requirements of