(1) A member entitled to be paid under this section shall be deemed, for purposes of this section, to have accrued pay and allowances for each day of leave required to be taken under section
876a of this title that is charged as excess leave (except any day of accrued leave for which the member has been paid under section
706 (b)(1) of this title and which has been charged as excess leave). If the pay grade of the member was reduced to a lower grade as a result of the court-martial sentence (including any reduction in pay grade under section
858a of this title) and such reduction has not been set aside, disapproved, or otherwise vacated, pay and allowances to be paid under this section shall be deemed to have accrued in such lower grade. Otherwise, such pay and allowances shall be deemed to have accrued in the pay grade held by the member on the day before the day on which his court-martial sentence was approved by the convening authority.
(2) Such a member shall be paid the amount of pay and allowances that he is deemed to have accrued, reduced by the total amount of his income from wages, salaries, tips, other personal service income, unemployment compensation, and public assistance benefits from any Government agency during the period he is deemed to have accrued pay and allowances. Except as provided in paragraph (3), such payment shall be made as follows:
(A) Payment shall be made within 60 days from the date of the order setting aside or disapproving the sentence by court-martial to a dismissal or a dishonorable or bad-conduct discharge if no rehearing or new trial has been ordered.
(B) Payment shall be made within 180 days from the date of the order setting aside or disapproving the sentence by court-martial to a dismissal or a dishonorable or bad-conduct discharge if a rehearing or new trial has been ordered but charges have not been referred to a rehearing or new trial within 120 days from the date of that order.
(C) If a rehearing or new trial has been ordered and a dismissal or a dishonorable or bad-conduct discharge is not included in the result of such rehearing or new trial, payment shall be made within 60 days of the date of the announcement of the result of such rehearing or new trial.
(D) If a rehearing or new trial has been ordered and a dismissal or a dishonorable or bad-conduct discharge is included in the result of such rehearing or new trial, but such dismissal or discharge is not later executed, payment shall be made within 60 days of the date of the order which set aside, disapproved, or otherwise vacated such dismissal or discharge.