code: public static final BigInteger printDurationTimeUnits(TimeUnit value, boolean estimated)
     {
        int result;
  
        if (value == null)
        {
           value = TimeUnit.HOURS;
        }
  
        switch (value)
        {
           case MINUTES:
           {
              result = (estimated ? 35 : 3);
              break;
           }
  
           case ELAPSED_MINUTES:
           {
              result = (estimated ? 36 : 4);
              break;
           }
  
           case ELAPSED_HOURS:
           {
              result = (estimated ? 38 : 6);
              break;
           }
  
           case DAYS:
           {
              result = (estimated ? 39 : 7);
              break;
           }
  
           case ELAPSED_DAYS:
           {
              result = (estimated ? 40 : 8);
              break;
           }
  
           case WEEKS:
           {
              result = (estimated ? 41 : 9);
              break;
           }
  
           case ELAPSED_WEEKS:
           {
              result = (estimated ? 42 : 10);
              break;
           }
  
           case MONTHS:
           {
              result = (estimated ? 43 : 11);
              break;
           }
  
           case ELAPSED_MONTHS:
           {
              result = (estimated ? 44 : 12);
              break;
           }
  
           case PERCENT:
           {
              result = (estimated ? 51 : 19);
              break;
           }
  
           case ELAPSED_PERCENT:
           {
              result = (estimated ? 52 : 20);
              break;
           }
  
           default:
           case HOURS:
           {
              result = (estimated ? 37 : 5);
              break;
           }
        }
  
        return (BigInteger.valueOf(result));
     }
docs: Print duration time units.
  
  Note that we don't differentiate between confirmed and unconfirmed
  durations. Unrecognised duration types are default to hours.
  
  @param value Duration units
  @param estimated is this an estimated duration
  @return BigInteger value