Change the equation for frequence