Credit card interest compounds while balance fees are one offs and on the balance only. I'm sure there's a point at which the balance fee becomes the more expensive option, but it's probably so high you wouldn't consider it anyway.
The calculators mentioned upthread look good; alternatively, you could ask anyone who passed 8th grade to help you with the math.