Support different time units and quota types.