Works out the score still needed to reach a target average, from the number of attempts so far and the average over them. It is the total the target calls for, less the total already scored. The score needed per remaining attempt is also shown.
When the average so far falls short of a target, this finds what is still needed. Averages cannot be added or subtracted directly, so both are turned into totals first.
is the number of attempts so far, the average over them, the target average, the attempts remaining and the total still needed. Dividing by gives the score needed per attempt, which is shown as well.
After three attempts averaging 72, two remain and the target is 80. Across all five, is needed in total, and has been scored. The difference, , is what the last two must bring in, or each.
Making up the 8 point gap between 72 and 80 is not enough. The three attempts already taken fall short as well, by points in total, and that shortfall has to be carried by the attempts that remain. Spread over two, it adds 12 to each, giving . The fewer attempts left, the heavier each one becomes.
The score needed per attempt can come out above full marks, which means the target is out of reach in the attempts remaining.
The attempts remaining must be a whole number of at least 1. The attempts so far may be 0.