inv.range function

Calculate the inverse of range size