product of 4 multiplied by the median family income for the applicable area (as determined pursuant to the most recent census data available as of the date of the contract for such sale), (B) in the case of a house comprised of 2 residential units, 125 percent of the amount described in subparagraph (A), (C) in the case of a house comprised of 3 residential units, 150 percent of the amount described in subparagraph (A), or (D) in the case of a house comprised of 4 residential units, 175 percent of the amount described in subparagraph (A). (2) Qualified homeowner The term qualified homeowner means, with respect to a qualified residence, an individual— (A) who owns and uses such qualified residence as the principal residence of such individual, and (B) whose family income (determined as of the date that a binding contract for the affordable sale of such residence is entered into) is 140 percent or less of the median family income for the applicable area in which the qualified residence is located. (e) Credit ceiling and allocations (1) Credit limited based on allocations to qualified projects (A) In general The credit allowed under subsection (a) to any taxpayer for any taxable year with respect to one or more qualified residences which are part of the same qualified project shall not exceed the excess (if any) of— (i) the amount allocated by the neighborhood homes credit agency under this paragraph to such taxpayer with respect to such qualified project, over (ii) the aggregate amount of credit allowed under subsection (a) to such taxpayer with respect to qualified residences which are a part of such qualified project for all prior taxable years. (B) Deadline for completion No credit shall be allowed under subsection (a) with respect to any qualified residence unless the affordable sale of such residence is during the 5-year period beginning on the date of the allocation to the qualified project of which such residence is a part (or, in the case of a qualified residence to which subsection (i) applies, the