Frequency compute script