Spending Insight: "This month" compares against a 30-day window instead of the previous calendar month
Version: v3.9.0 (self-hosted, Docker)
Description
In Spending Insight → "What changed", with the period set to "This month", the prior period is 1 Aug – 30 Aug, which is only 30 days and drops the last day of August. The headline reads:
HEADLINE · 1 SEPT 2026 – 30 SEPT 2026 VS 1 AGO 2026 – 30 AGO 2026
The current period is the full month of September (30 days). The comparison period looks like "the same number of days immediately before", which is short of August's 31 days.
Impact
Any transaction on the 31st of a 31-day month is missing from the comparison. In my case, rent is paid on the last day of the month (1,850 CHF on 31 Aug and again on 30 Sep). The 31 Aug payment is excluded from the prior period, so the insight reports:
You spent 381,01 € more than 1 ago 2026 – 30 ago 2026. Most of the rise came from Housing appeared (+1953,72 €).
In reality Housing was the same in both months, so there was no real increase. The headline change is wrong as well.
Expected behavior
When a calendar-month preset such as "This month" is selected, the comparison period should be the previous calendar month (1 Aug – 31 Aug). A same-length preceding window is reasonable for custom ranges, but not for calendar presets.
Steps to reproduce
- Have a recurring expense dated on the 31st of a month, for example 31 Aug.
- Have the same expense dated on the 30th or last day of the following 30-day month, for example 30 Sep.
- Open Spending Insight, set the period to "This month" in September, and go to "What changed".
- The prior period shows 1 Aug – 30 Aug, and the 31 Aug expense is missing from it.
Screenshot
Source: wealthfolio/wealthfolio