calculateRange