I want to register my weight every day and calculate the average of the last 7 days.
Therefore, the average will have to be calculated with the following weights:
Day 0 = 80 [the weight today]
Day -1 = 79
Day -2 = 78.5
...
Day -6 = 78
Therefore, what today is "Day 0", tomorrow will be "Day -1" and so on.
How would you deal with the name of the variables?
Thanks