The value frequencyFromSeconds() can be stored in a variable and used all places (its being used at quite many places)