10 USC 1401 - Computation of retired pay

(a) Disability, Non-Regular Service, Warrant Officer, and DOPMA Retirement.— 
The monthly retired pay of a person entitled thereto under this subtitle is computed according to the following table. For each case covered by a section of this title named in the column headed For sections, retired pay is computed by taking, in order, the steps prescribed opposite it in columns 1, 2, 3, and 4, as modified by the applicable footnotes.
(b) Use of Most Favorable Formula.— 
If a person would otherwise be entitled to retired pay computed under more than one formula of the table in subsection (a) or of any other provision of law, the person is entitled to be paid under the applicable formula that is most favorable to him.