Calculating the Relative Frequency of a specific interval