subject to the receipt by the United States Government of a credit to be applied against the payment by the United States Government of its share of the expenses of the international organization to which the officer or employee is detailed or assigned, such credit to be based upon the compensation, travel expenses, benefits and allowances, or any part thereof, payable to such officer or employee during the period of detail or assignment in accordance with
section 2389 of this title.