code: public static final BigInteger printWorkUnits(TimeUnit value)
     {
        int result;
  
        if (value == null)
        {
           value = TimeUnit.HOURS;
        }
  
        switch (value)
        {
           case MINUTES:
           {
              result = 1;
              break;
           }
  
           case DAYS:
           {
              result = 3;
              break;
           }
  
           case WEEKS:
           {
              result = 4;
              break;
           }
  
           case MONTHS:
           {
              result = 5;
              break;
           }
  
           case YEARS:
           {
              result = 7;
              break;
           }
  
           default:
           case HOURS:
           {
              result = 2;
              break;
           }
        }
  
        return (BigInteger.valueOf(result));
     }
docs: Print work units.
  
  @param value TimeUnit instance
  @return work units value