Fundamental Frequency Calculator Using Period