Sorry for the double posting, you could try creating apps that use the same formula or the equivalent in python and BGT and see if you get the same output. If not, then I will go over the formula again and compare the parentheses, as that is what could cause the issue