Calculate Mathematical Equations