completed average and total calculation