How do I loop over result rows and return calculated values?
This is because $results[$static['entityform_id']]['sum'] already contains the sum result from previous loop result.
Thus it adds 55 for every row iteration.
Try adding the current array index to $results inside foreach loop.