News for hackers. Stuff that matters.
Re:Searching for Lost Time in the World’s Most Beautiful Cal... by matthewfcarlson on Monday April 17, 2023 @02:12PM (#35604354)
I've been thinking about creating a budgeting app that finally does away with months. I hate setting a budget for a month and would instead love to do a 30 rolling window.
Re:Searching for Lost Time in the World’s Most Beautiful Cal... by konschubert on Monday April 17, 2023 @02:28PM (#35604569)
Please do it and tell me about it.
Re:Searching for Lost Time in the World’s Most Beautiful Cal... by nerdponx on Monday April 17, 2023 @02:55PM (#35604939)
This is a great idea. It would be really useful if you could just put in income and expenses with dates attached, and have the app compute things in windows of various sizes, as well as traditional calendar-based periods.
Re:Searching for Lost Time in the World’s Most Beautiful Cal... by mbork_pl on Sunday April 23, 2023 @03:14AM (#35674076)
You can use ledger (https://ledger-cli.org/) for that:

  ledger bal <filters> -f <journal file> -b "28 days ago"
Re:Searching for Lost Time in the World’s Most Beautiful Cal... by philshem on Monday April 17, 2023 @03:43PM (#35605549)
—> 28 day rolling window
Re:Searching for Lost Time in the World’s Most Beautiful Cal... by doh on Monday April 17, 2023 @04:07PM (#35605884)
This was the logic Brex started with when they first introduced their corporate cards.

The rolling window started wrecking havoc very quickly. For instance, we gave all employees $300/month budget for parking garage. However, on some months they would charge the card on 5th of the month, on another at 11th, etc. It was literally unusable and we left for another provider (later Brex also went back to calendar days).

While this might not be an issue for your application per se, the real world operates on calendar days. You will quickly run into situations where 30 day rolling window not only doesn’t work but is explicitly causing problems.

My 2 cents.