private float calculateParsed(List<String> parsed) {
        float result = 0;
        while (parsed.size() > 1) {
            for (int i = 0; i < parsed.size(); i++) {
                String element = parsed.get(i);
                if (isOperation(element)) {
                    result = performCalculations(parsed, element, result, i);
                    break;
                }
            }
        }
        return result;
    }