Skip to content

feat(savings): Savings opportunity detection engine (#119)#274

Open
dagangtj wants to merge 1 commit intorohitdash08:mainfrom
dagangtj:feat/savings-detection-119
Open

feat(savings): Savings opportunity detection engine (#119)#274
dagangtj wants to merge 1 commit intorohitdash08:mainfrom
dagangtj:feat/savings-detection-119

Conversation

@dagangtj
Copy link

Summary

Intelligent engine that analyzes spending patterns to identify potential savings opportunities.

Closes #119

Changes

  • Detection service: packages/backend/app/services/savings_detection.py

    • Duplicate subscription detection (streaming, music, cloud, news, fitness)
    • Price increase detection on recurring charges (≥10% trigger)
    • High frequency spending alerts (>15 transactions/quarter)
    • Category spending spike detection (>50% increase vs prior period)
    • Negotiable bill identification (insurance, internet, phone, etc.)
    • Round-up-to-dollar savings calculator
    • Priority ranking: high/medium/low per opportunity
  • API: packages/backend/app/routes/savings.py

    • POST /savings/opportunities — full analysis with potential savings
  • Tests: 14 test cases

Example Response

{
  "opportunities": [{"type": "duplicate_subscription", "title": "Multiple streaming subscriptions", "potential_savings": 12.00}],
  "total_potential_monthly_savings": 24.50,
  "round_up_savings_monthly": 8.30,
  "opportunity_count": 3
}

Acceptance Criteria

  • Production ready implementation
  • Includes tests (14 cases)
  • Follows existing code patterns

…ash08#120)

- Classify expenses into essential/discretionary/savings/unclassified
- 50/30/20 budgeting rule analysis
- Monthly trend tracking
- Actionable recommendations engine
- Custom classification rules support
- REST API: breakdown, classify, trend
- 18 test cases
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Savings opportunity detection engine

1 participant