Range calculation

Simple filter for range calculation