(b)forfeiture of pay and allowance or such portion of pay and allowance as he considers necessary for a period which may extend, when the order is passed by the Commandant, to one month, and when the order is passed by any other officer, to ten days;