docs: public String encode(int hoursInDay) {
      int days = ((Double) ((double) durationInMinutes / hoursInDay / MINUTES_IN_ONE_HOUR)).intValue();
      Long remainingDuration = durationInMinutes - (days * hoursInDay * MINUTES_IN_ONE_HOUR);
      int hours = ((Double) (remainingDuration.doubleValue() / MINUTES_IN_ONE_HOUR)).intValue();
      remainingDuration = remainingDuration - (hours * MINUTES_IN_ONE_HOUR);
      int minutes = remainingDuration.intValue();
  
      StringBuilder stringBuilder = new StringBuilder();
      if (days > 0) {
        stringBuilder.append(days);
        stringBuilder.append(DAY);
      }
      if (hours > 0) {
        stringBuilder.append(hours);
        stringBuilder.append(HOUR);
      }
      if (minutes > 0) {
        stringBuilder.append(minutes);
        stringBuilder.append(MINUTE);
      }
      return stringBuilder.length() == 0 ? ("0" + MINUTE) : stringBuilder.toString();
    }