You must fully understand the formula before using it, otherwise some problems will appear. This formula has existed for many years and there will be no problem. You must have overlooked some detail, so check it again.
Hope to adopt, if you don't understand, welcome to ask questions.