without regard to subparagraph (A) thereof) of such entity for the taxable year is less than $5,000,000, and (II) such entity did not have gross receipts (as so determined) for any taxable year preceding the 5-taxable-year period ending with such taxable year, and (ii) any person (other than a corporation or partnership) who meets the requirements of subclauses (I) and (II) of clause (i), determined— (I) by substituting person for entity each place it appears, and (II) by only taking into account the aggregate gross receipts received by such person in carrying on all trades or businesses of such person. (B) Limitation Such term shall not include an organization which is exempt from taxation under section 501. (4) Election (A) In general Any election under this subsection for any taxable year— (i) shall specify the amount of the credit to which such election applies, (ii) shall be made on or before the due date (including extensions) of— (I) in the case of a partnership, the return required to be filed under section 6031, (II) in the case of an S corporation, the return required to be filed under section 6037, and (III) in the case of any other qualified small business or qualified tax-exempt organization, the return of tax for the taxable year, and (iii) may be revoked only with the consent of the Secretary. (B) Limitations (i) Amount The amount specified in any election made under this subsection shall not exceed $250,000. (ii) Number of taxable years A person may not make an election under this subsection if such person (or any other person treated as a single taxpayer with such person under paragraph (5)(A)) has made an election under this subsection for five or more preceding taxable years. (C) Special rule for partnerships and s corporations In the case of a partnership or S corporation, the election made under this subsection shall be made at the entity level. (5) Aggregation rules (A) In general Except as provided in subparagraph (B)— (i) all members of the same controlled group of corporations shall be