@clacke In real life the answer is "you don't write calculations like that because they might confuse people".
Similarly for coding standards. "Do not write code that depends in subtle ways on the priority and association rules of your particular language, because not everybody will know that particular niche flavour of rules. If in even the slightest doubt PUT THE FUCKING BRACKETS IN. And if you're not in doubt, put them in anyway."
(And then turn off any utterly insane linting rules that whine about superfluous brackets. And if you aren't allowed to turn off those rules ... find another job.)