Errors in budget calculations, possibly leap-year related
-
frog
- Title changed from budget oddity in leap years to Errors in budget calculations, possibly leap-year related
-
Virgil Dupras
- Tag changed from budget to budget, bug
Thanks, I don't know if that's enough, but that's certainly a lot :) I'll check this out shortly.
-
Virgil Dupras
A cursory look seem to indicate that the budgeting calculations are right. The problem seems to stem from an incomprehension of how such calculation works (maybe that the help file should explain that). I admit it's a bit complicated, but let me explain:
Let's start with the annual budget starting in january. We're the 19th of june, so we are 170 days into the year. This means that there are 195 days left to our period. We haven't spent anything from the budget, so we still have to allocate our 1000$ evenly in those next 195 days, that means about 5.1282$ per day. We're the 19th of june, there's 11 days left to the month (moneyGuru doesn't count today in budget calculations). 5.1282 * 11 = 56.41
February: We have more days left to our period because it ends in february. We have 195+31 (226) days left. Per day, that's 4.4248$. Times 11, that's 48.67.
Let's skip to July. July is the last month of our yearly period, and we have to allocate it all before the end of the month, that's why we got 1000$.
Again, I admit that the budgeting calculations are complex. I also find them quite complex myself, but I don't see how they could work otherwise.
If you agree with my calculations, I'll consider this issue closed.
edit: oops, I wrote 19th of july instead of 19th of june.
-
frog
Okay, yep this explains it all, thanks! I think a useful piece of advice for users is that they should align annual budgets with the month their year starts on to avoid confusion.
I went over the second list of values with the same calculations to check it still made sense, so I'll leave them here for anyone else reading this who happens to suffer the same confusion as me:
If we look at annual budget starting in January, over the period of July 2011 to June 2012, there are two separate budgets to consider: The one from Jan 2011 to Dec 2011 and the one from Jan 2012 to Dec 2012. Since the year contains days from both budget periods, they both contribute. The Jan 2011 to Dec 2011 budget contributes the same $5.1282 per day ($1000/195d), applied to the 184 days from July 2011 to Dec 2011 giving $943.59 ($5.1282x184d). The Jan 2012 to Dec 2012 budget contributes $2.73224 per day ($1000/366), applied to the 182 days from Jan 2012 to June 2012 giving $497.27 ($2.7322x182d). Combined that's $1440.86.
-
Virgil Dupras
- State changed from new to invalid
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
