code: private static int dayDiff(final Calendar start, final Calendar end) {
          final long diff = Math.abs(start.getTimeInMillis() - end.getTimeInMillis());
          final double dayDiff = (double) diff / MILLIS_IN_DAY;
          return (int) Math.round(dayDiff);
      }
docs: -----------------------------------------------------------------------