I am trying to write a calculation for a program code but cannot figure out how the math would work. My goal is to have a calculation that would read something like value A is greater than value b by 300% or more.
I know this is a mathematics forum but if it helps the code is in python and would be an if statement like:
if value a is greater than value b by 300% or more then violation, else not a violation.