Rolling summation or subtraction between parent and child fields

Rolling summation or subtraction between parent and child fields