new range calculation