What are the equations for frequency and period?