by the Secretary of the military department concerned, a member of the armed forces participating in a program under this section may, in the discretion of such Secretary, be required to terminate participation in the program and be ordered to active service. (f) Pay and allowances (1) During each month of participation in a program under this section, a member who participates in the program shall be paid basic pay in an amount equal to two-thirtieths of the amount of monthly basic pay to which the member would otherwise be entitled under section 204 of title 37 as a member of the uniformed services on active service in the grade and years of service of the member when the member commences participation in the program. (2) (A) A member who participates in a program shall not, while participating in the program, be paid any special or incentive pay or bonus to which the member is otherwise entitled under an agreement under chapter 5 of title 37 that is in force when the member commences participation in the program. (B) The inactivation from active service of a member participating in a program shall not be treated as a failure of the member to perform any period of service required of the member in connection with an agreement for a special or incentive pay or bonus under chapter 5 of title 37 that is in force when the member commences participation in the program. (3) (A) Subject to subparagraph (B), upon the return of a member to active service after completion by the member of participation in a program— (i) any agreement entered into by the member under chapter 5 of title 37 for the payment of a special or incentive pay or bonus that was in force when the member commenced participation in the program shall be revived, with the term of such agreement after revival being the period of the agreement remaining to run when the member commenced participation in the program