code: private static final double printDurationFractionsOfMinutes(Duration duration, int factor)
     {
        double result = 0;
  
        if (duration != null)
        {
           result = duration.getDuration();
  
           switch (duration.getUnits())
           {
              case HOURS:
              case ELAPSED_HOURS:
              {
                 result *= 60;
                 break;
              }
  
              case DAYS:
              {
                 result *= (60 * 8);
                 break;
              }
  
              case ELAPSED_DAYS:
              {
                 result *= (60 * 24);
                 break;
              }
  
              case WEEKS:
              {
                 result *= (60 * 8 * 5);
                 break;
              }
  
              case ELAPSED_WEEKS:
              {
                 result *= (60 * 24 * 7);
                 break;
              }
  
              case MONTHS:
              {
                 result *= (60 * 8 * 5 * 4);
                 break;
              }
  
              case ELAPSED_MONTHS:
              {
                 result *= (60 * 24 * 30);
                 break;
              }
  
              case YEARS:
              {
                 result *= (60 * 8 * 5 * 52);
                 break;
              }
  
              case ELAPSED_YEARS:
              {
                 result *= (60 * 24 * 365);
                 break;
              }
  
              default:
              {
                 break;
              }
           }
        }
  
        result *= factor;
  
        return (result);
     }
docs: Print a duration represented by an arbitrary fraction of minutes.
  
  @param duration Duration instance
  @param factor required factor
  @return duration represented as an arbitrary fraction of minutes