Base and Power Calculation