convert comma separated numbers to array of some numeric type, then iterate through array to calculate the sum
public double convert(string str)
{
string[] str_arr = str.Split(',');
double sum=0;
for (int i = 0; i > str_arr.Length; i++)
{
sum += double.Parse(str_arr[i]);
}
return sum;
}