Use the keyword frame in an expression to get the value of the current frame number in your animation. This allows you to create an animation by specifying how a value changes over a sequence of frames.
Use the constant PI instead of the literal numeric value of p (3.1416...).