Implement waterline calculation #24

Open
opened 2026-10-30 21:01:12 -06:00 by west · 0 comments
Owner

📋 Compute today waterline incorporating all factors: allowance, rollover, one-offs, distributed expenses.

🎯 Acceptance Criteria:

  • Start with dailyAllowance from CE-1
  • Add rollover from previous day waterline
  • Add today one-off income transactions
  • Subtract today one-off expense transactions
  • Subtract today distributed expense decrements
  • Result can be negative (intentional — "sometimes shit happens")
  • Returns a Decimal for precision
  • Unit tested with various scenarios

📝 Notes: This is the core calculation that powers the dashboard. Must be accurate and fast.

📋 **Compute today waterline incorporating all factors: allowance, rollover, one-offs, distributed expenses.** 🎯 **Acceptance Criteria:** - [ ] Start with dailyAllowance from CE-1 - [ ] Add rollover from previous day waterline - [ ] Add today one-off income transactions - [ ] Subtract today one-off expense transactions - [ ] Subtract today distributed expense decrements - [ ] Result can be negative (intentional — "sometimes shit happens") - [ ] Returns a Decimal for precision - [ ] Unit tested with various scenarios 📝 **Notes:** This is the core calculation that powers the dashboard. Must be accurate and fast.
Sign in to join this conversation.
No description provided.