Calculating average attempt