public int getPrecision(int pointsRequired) {
        if (!isBounded()) {
            return 0;
        }
        if (pointsRequired == 0) {
            return 0;
        }
        long duration = getTo() - getFrom();

        long scale = duration / pointsRequired;

        return (int) Math.log10(scale);
    }
@return whole hours in this period
stroom-legacy/stroom-legacy-model_6_1/src/main/java/stroom/legacy/model_6_1/Period.java