if(r <= 0.8 * n, 8 * (sqrt(n) / sqrt(r)) * (1 + log(bc + 0.25)), 10)
Assuming "A is money" means the player's buy-in cost. I don't know why you've got "A3", "B3", and "C3" throughout your formula when you make note that the variables are "A", "B", and "C". It appears you've added the "3" to each variable in your updated formula, too. Unsure why that is, but it won't work in the TD.
On last thing, you may need to change "log()" to "log10()" if the formula does not give you the desired result. See the user's manual for info on the difference in the 2 functions.