If you don't know the formula in the first place, why do you even want to make a tool like that? They're common enough. Is this for school?
Viewing post in Resistor Color Code Calculator
Not sure if you found your answer but did you check out this website yet? http://wiki.compilgames.net/doku.php/gdevelop5/all-features/expressions