; (B) generated at a facility that— (i) captures the carbon dioxide from— (I) a waste stream of the facility; (II) another waste stream; or (III) the atmosphere directly; and (ii) prevents the release of the captured carbon dioxide into the atmosphere; or (C) dispatched from a qualified energy storage system. (9) Clean energy percentage (A) In general The term clean energy percentage means the percentage of clean energy consumed by all electric consumers of a retail electricity supplier. (B) Calculation For purposes of subparagraph (A), the clean energy percentage of a retail electricity supplier shall be equal to the quotient obtained by dividing— (i) the sum of— (I) the quantity of clean energy sold by the retail electricity supplier to electric consumers; and (II) the quantity of behind-the-meter generation consumed by electric consumers served by the retail electricity supplier; by (ii) the base quantity of the retail electricity supplier. (C) Determination (i) In general For purposes of subparagraph (B), not later than 180 days after the date of enactment of this section, the Secretary shall develop a process for determining the quantities of— (I) clean energy sold by a retail electricity supplier to electric consumers, taking into account— (aa) the need to quantify, without double counting, appropriate quantities of clean energy— (AA) owned by the retail electricity supplier; (BB) obtained by the retail electricity supplier through power purchase agreements; (CC) imported by the retail electricity supplier; (DD) purchased by the retail electricity supplier from wholesale markets; and (EE) purchased by the retail electricity supplier through existing renewable or clean energy credits and certificates; and (bb) appropriate differences between— (AA) retailers operating in organized wholesale markets; and (BB) retailers operating in vertically integrated market contexts