same calendar quarter of calendar year 2019, (B) $25,000,000, or (C) the greater of— (i) 25 percent of the wages paid with respect to the employment of all the employees of the eligible employer for such calendar quarter, or (ii) 6.25 percent of the gross receipts of the eligible employer for calendar year 2019. (2) Per facility quarterly dollar limitation The qualified fixed expenses which may be taken into account under subsection (a) by any eligible employer for any calendar quarter with respect to any facility of such employer shall not exceed $50,000. (3) Credit limited to certain employment taxes The credit allowed by subsection (a) with respect to any calendar quarter shall not exceed the applicable employment taxes for such calendar quarter (reduced by any credits allowed under subsections (e) and (f) of section 3111 of such Code, sections 7001 and 7003 of the Families First Coronavirus Response Act, and section 2301 of the CARES Act, for such quarter) on the wages paid with respect to the employment of all the employees of the eligible employer for such calendar quarter. (4) Refundability of excess credit (A) In general If the amount of the credit under subsection (a) exceeds the limitation of paragraph (3) for any calendar quarter, such excess shall be treated as an overpayment that shall be refunded under sections 6402(a) and 6413(b) of the Internal Revenue Code of 1986. (B) Treatment of payments For purposes of section 1324 of title 31, United States Code, any amounts due to an employer under this paragraph shall be treated in the same manner as a refund due from a credit provision referred to in subsection (b)(2) of such section. (c) Definitions For purposes of this section— (1) Applicable employment taxes The term applicable employment taxes means the following: (A) The taxes imposed under section 3111(a) of the Internal Revenue Code of 1986. (B) So much of the taxes imposed under section 3221(a) of such Code as are attributable to the rate in effect under section 3111(a) of such Code. (2) Eligible