with the Administrator of the Environmental Protection Agency, shall issue final guidance regarding implementation of this section, including calculation of emissions factors for transportation fuel, the table described in subsection (b)(2), and the determination of clean fuel production credits under this section. (g) Special rules (1) Only registered production in the United States taken into account (A) In general No clean fuel production credit shall be determined under subsection (a) with respect to any transportation fuel unless— (i) the taxpayer is registered as a producer of clean fuel under section 4101 at the time of production, and (ii) such fuel is produced in the United States. (B) United States For purposes of this paragraph, the term United States includes any possession of the United States. (2) Production attributable to the taxpayer In the case of a facility in which more than 1 person has an ownership interest, except to the extent provided in regulations prescribed by the Secretary, production from the facility shall be allocated among such persons in proportion to their respective ownership interests in the gross sales from such facility. (3) Related persons Persons shall be treated as related to each other if such persons would be treated as a single employer under the regulations prescribed under section 52(b). In the case of a corporation which is a member of an affiliated group of corporations filing a consolidated return, such corporation shall be treated as selling fuel to an unrelated person if such fuel is sold to such a person by another member of such group. (4) Pass-thru in the case of estates and trusts Under regulations prescribed by the Secretary, rules similar to the rules of subsection (d) of section 52 shall apply. (5) Allocation of credit to patrons of agricultural cooperative (A) Election to allocate (i) In general In the case of an eligible cooperative organization, any portion of the credit determined under subsection (a) for the taxable year may, at the election of the