The Secretary of the Treasury shall periodically (but not less frequently than annually) pay to the Virgin Islands amounts equal to the loss to that possession by reason of the application of this section (determined without regard to paragraph (2)) with respect to taxable years beginning after December 31, 2016. Such amounts shall be determined by the Secretary of the Treasury based on information provided by the government of such possession. (B) Puerto Rico The Secretary of the Treasury shall periodically (but no less frequently than annually) pay to Puerto Rico amounts estimated by the Secretary of the Treasury as being equal to the aggregate benefits that would have been provided to residents of such possession by reason of the application of this section for taxable years beginning after December 31, 2016, if a mirror code tax system had been in effect in such possession. The preceding sentence shall not apply unless the government of Puerto Rico has a plan, which has been approved by the Secretary of the Treasury, under which such possession will promptly distribute such payments to the residents of such possession. (2) Coordination with credit allowed against united states income taxes No credit shall be allowed under this section for any taxable year to any person— (A) to whom a credit is allowed against taxes imposed by the Virgin Islands or Puerto Rico by reason of this section (determined without regard to this paragraph) for such taxable year, or (B) who is eligible for a payment under a plan described in paragraph (1)(B) with respect to such taxable year. (3) Treatment of payments For purposes of section 1324(b)(2) of title 31, United States Code, or any similar rule of law, any payment made under this subsection shall be treated in the same manner as a refund due from the credit allowed under this section. . (b) Child tax credit Section 24 of such Code is amended by adding at the end the following: (h) Payments to virgin islands and Puerto Rico for lost revenue The Secretary shall make annual