Converting frequency to int