[PR #6371] Fix detection of crossover point for low expense months #20833

Closed
opened 2026-04-14 21:46:35 -05:00 by GiteaMirror · 0 comments
Owner

Original Pull Request: https://github.com/actualbudget/actual/pull/6371

State: closed
Merged: Yes


Always compute the expense projection and calculate the crossover point based on the projection instead of individual historical expense data because otherwise a low expense month can incorrectly trigger a false crossover point detection.

See comment at https://github.com/actualbudget/actual/issues/6134#issuecomment-3608140098 for more information.


Note

Determine crossover only from projected expenses and always run projections, preventing false positives from low historical expense months.

  • Reports:
    • Update packages/desktop-client/src/components/reports/spreadsheets/crossover-spreadsheet.ts:
      • Stop detecting crossover in historical data; detect only via projected expenses/income.
      • Always execute projection by removing crossoverIndex gate in the projection block.
  • Release Notes:
    • Add upcoming-release-notes/6371.md noting the bugfix for incorrect crossover detection on low-expense months.

Written by Cursor Bugbot for commit 72032963a2. This will update automatically on new commits. Configure here.

**Original Pull Request:** https://github.com/actualbudget/actual/pull/6371 **State:** closed **Merged:** Yes --- Always compute the expense projection and calculate the crossover point based on the projection instead of individual historical expense data because otherwise a low expense month can incorrectly trigger a false crossover point detection. See comment at https://github.com/actualbudget/actual/issues/6134#issuecomment-3608140098 for more information. <!-- CURSOR_SUMMARY --> --- > [!NOTE] > Determine crossover only from projected expenses and always run projections, preventing false positives from low historical expense months. > > - **Reports**: > - Update `packages/desktop-client/src/components/reports/spreadsheets/crossover-spreadsheet.ts`: > - Stop detecting crossover in historical data; detect only via projected expenses/income. > - Always execute projection by removing `crossoverIndex` gate in the projection block. > - **Release Notes**: > - Add `upcoming-release-notes/6371.md` noting the bugfix for incorrect crossover detection on low-expense months. > > <sup>Written by [Cursor Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit 72032963a22334594d397ed96034298a6fc55e1a. This will update automatically on new commits. Configure [here](https://cursor.com/dashboard?tab=bugbot).</sup> <!-- /CURSOR_SUMMARY -->
GiteaMirror added the pull-request label 2026-04-14 21:46:35 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/actual#20833