code: public static final Duration parseDuration(String value)
     {
        return value == null ? null : Duration.getInstance(Double.parseDouble(value), TimeUnit.DAYS);
     }
docs: Parse a duration value.
  
  @param value duration value
  @return Duration instance