Order of operations to get correct average.