find the time period of oscillation.