My Algorithm

- Read entire equation string
- Check for parentheses
- If parentheses present:
- Create subequation by parsing the string between the inner-most set of parentheses
- Remove that set of parentheses
- Calculate that subequation
- Replace the original parentheses string with newly calculated subequation
- Repeat check for parentheses
- If parentheses not present:
- Calculate equation
- Set final calculation in the text input

- Equation and sub equations are parsed by placing values and operators into a single arrays
- Percents are parsed prior to calculating the equation
- Calculation follows order of operations