Although the script sums the daily averages, as you also did, it also means what you want, the average of the totals. :shock:
I will try to explain. If you sum the week totals and divide by the number of weeks you will not have the average of the totals since the first and last weeks are not complete, or better, they are only complete on the last Sunday update.
But if you sum the daily points average you will have full weeks since the not existing days are not summed and so the sum of the averages is a much better average of the totals than if i summed the totals and divided by the number of weeks.
Confused? I was the first time i tried to solve it and i was thinking about an algorithm a bit more complex until i realized it was already solved.
Sorry if i can't be clearer. Thanks for pointing that out.