code: public long getDurationInMinutes(String name, long defaultValue) {
          TimeUnit timeUnit = extractTimeUnit(name, defaultValue + " MINUTES");
          long duration = getLong(name, defaultValue);
  
          return timeUnit.toMinutes(duration);
      }
docs: Gets the duration setting and converts it to minutes.
  <p/>
  The setting must be use one of the following conventions:
  <ul>
  <li>n MILLISECONDS
  <li>n SECONDS
  <li>n MINUTES
  <li>n HOURS
  <li>n DAYS
  </ul>
  
  @param name
  @param defaultValue in minutes
  @return minutes