summation calcs for simpearson func