Update DynamicTableCalculator.java

sum up the real values instead of string to double to avoid rounding errors