Simply get 2 sets of data group them into order and arrange low to high square the diff between each group then put the sum of it into this snippet