; or (B) transfer to, or be hired into, a different position within the Department of Homeland Security (other than another position in CBP). (2) Written agreement The payment of a retention incentive to a covered CBP employee under paragraph (1) is contingent upon the covered CBP employee entering into a written agreement with U.S. Customs and Border Protection to complete more than two years of employment with U.S. Customs and Border Protection beginning on the date on which the CBP employee enters on duty and the agreement is signed. Such agreement shall include— (A) the amount of the retention incentive; (B) the conditions under which the agreement may be terminated before the required period of service is completed and the effect of such termination; (C) the length of the required service period; and (D) any other terms and conditions under which the retention incentive is payable, subject to the requirements under this section. (3) Criteria When determining the amount of a retention incentive paid to a covered CBP employee under paragraph (1), the Commissioner shall consider— (A) the length of the Federal service and experience of the covered CBP employee; (B) the salaries for law enforcement officers in other Federal agencies; and (C) the costs of replacing the covered CBP employee, including the costs of training a new employee. (4) Amount of retention incentive A retention incentive paid to a covered CBP employee under paragraph (1)— (A) shall be approved by the Secretary of Homeland Security and the Commissioner; (B) shall be stated as a percentage of the employee’s rate of basic pay for the service period associated with the incentive