but only to the extent of the renters credit amounts which have been allocated to such person by the renters credit agency. In lieu of the owner of the unit, the renters credit agency may treat the lender of any loan to such owner as the qualified credit recipient if such unit secures such loan. (d) Allocations by renters credit agency to credit recipients (1) In general The renters credit agency may make allocations of renters credit amounts to qualified credit recipients under this section on the basis of— (A) the identity of the qualified renter, such that the renters credit amount is allowed to the owner of any rental unit which such qualified renter occupies (or the lender referred to in subsection (c)) for any month, or (B) one or more rental units, such that the renters credit amount is allowed to the owner of such units (or the lender referred to in subsection (c)) for such months as such units are occupied by a qualified renter. (2) Restrictions on unit based allocations A renters credit agency may make allocations of renters credit as described in paragraph (1)(B) only if— (A) such units are part of a project or building in which not more than 40 percent of the units receive allocations under this section (the Secretary may provide such exceptions to the requirement of this subparagraph as the Secretary determines appropriate for small buildings or buildings with respect to which more than 40 percent of the units were previously subsidized under other Federal programs), and (B) the Secretary has approved a mobility plan submitted by such renters credit agency which provides for an adequate method to ensure that qualified renters have the ability to move from a unit which is eligible for credit under this section without losing the rent subsidy provided by this section. (e) Allocations of credit authority to State agencies (1) Renters credit dollar amount for agencies (A) State limitation The aggregate credit amounts which a renters credit agency may allocate for any calendar year is the portion of the