do you talk about backend or frontend?
i think something like this should work(for frontend):
outside(before) the values loop define variable
$total = '0';
inside the values loop
$price = get_sub_field('price'); $total = $total + $price;
outside(after) the values loop
echo $total;