Calculate the average BPM