2018 Solution 07

Determine the frequency of oscillation. This is the same problem as 2018 Problem 06; with some abstractions to help the solution along.