created get_InterestFreq() function