private static int computeWindowRangeCount(long duration, long slotSize) {
        long count = (duration / slotSize) + 1;
        return Math.toIntExact(count);
    }
@throws ArithmeticException if the {@code count} overflows an int
commons-timeseries/src/main/java/com/navercorp/pinpoint/common/timeseries/window/TimeWindow.java