So I’m adding money to my account in different times and in different amounts. I use this money to buy different short term financial instruments.
I’m calculating the weighted-average of the theoretical past date as if I added all money on a single day (basically sumproduct of date with corresponding amount, divided by sum of all deposits).
I then divide all profit by the sum of all deposits to get a percentage.
Now the problem. If I deposit today, the theoretical past date is indeed changed, but I expect to see the percentage unchanged, regardless of the amount, because its contribution should be zero. Instead I see it decreased.
What am I missing?