; by (BB) the applicable carbon intensity; and (ii) the product obtained by multiplying— (I) the number of megawatt-hours of electric energy generated by the qualified combined heat and power system that are consumed onsite; and (II) the national weighted average of the applicable clean energy percentage required for the calendar year under subsection (c), as determined by the Secretary. (B) Additional credits In addition to Federal clean energy credits issued under subparagraph (A), the Secretary shall issue Federal clean energy credits to a generator that is a qualified combined heat and power system for greenhouse gas emissions avoided as a result of the use of the qualified combined heat and power system, rather than a separate thermal source, to meet the onsite thermal needs of the generator. (3) Qualified renewable biomass (A) In general Subject to subparagraph (B), the quantity of Federal clean energy credits issued to each generator of clean energy using qualified renewable biomass shall be equal to the product obtained by multiplying— (i) the qualified generation of the generator using qualified renewable biomass; and (ii) the qualified renewable biomass credit value determined under subsection (g)(4)(B)(iii). (B) Existing generators For generators placed into service before the date of enactment of this section, the quantity of Federal clean energy credits issued to each generator of energy using qualified renewable biomass shall be equal to the greater of— (i) the product obtained by multiplying— (I) the qualified generation of the generator, not to exceed the generation capacity of the generator on the date of enactment of this section; and (II) 0.5