Determine The Average Value In An Interval