calc average and calc varience