code: private static BigInteger computeMonths(Duration d) {
      return d.getYears().multiply(BigInteger.valueOf(12)).add(d.getMonths());
    }
docs: Returns the total number of months specified by the year and month fields of the duration