I split the array into 2 to make calculations simpler. It works like a charm.

1 Like