(New) Frequency calculation