Code Fiddle:Fiddle
I am trying to calculate total variations for all variants. I have list of variants with type Add and Diff and each variants contains