Here is a neat calculation engine, that I built using Scratch 1.4 and that I packaged for Scratch 2.0. If you use this engine, please be sure to give me credit. Thank you! :)