In the state military forces, a court-martial may, instead of imposing a fine, sentence to confinement for not more than one day for each dollar of the authorized fine.