Generic calculator for PLL multiplier and divider values