Datatable summing of above rows based on condition

looks like a groupby case. An introduction to this (NON-LINQ, LINQ Approaches) find here: