Sine wave formula changed