fixed term frequency calculation