Formula For Finding Frequency