; (2) an appropriate arrangement for such use of the facility can be made; and (3) the facility satisfies the standards for the housing, care, and security of persons held in custody of a United States marshal. (d) Reimbursement (1) In general The Secretary of Homeland Security shall reimburse States and political subdivisions of a State for all reasonable expenses, as determined by the Secretary, incurred by the State, or political subdivision as a result of the incarceration and transportation of an alien who is unlawfully present in the United States. (2) Calculation Compensation provided pursuant to paragraph (1) shall be equal to the sum of— (A) the average cost of incarceration of a prisoner in the relevant State for the period the alien was incarcerated, as determined by the chief executive officer of a State, or of a political subdivision of a State