All courts-martial, including summary courts, may sentence to confinement in lieu of fines authorized to be imposed. Such sentences of confinement, however, may not exceed one day for each dollar of fine authorized.