# Phase 5 Ranking Logic

1. Sync monthly transactions from activity sources.
2. Sum monthly credits and debits per user.
3. Compute net points = credits - debits.
4. Compute average productivity score from daily work logs.
5. Rank by net points, then performance score.
6. Mark rank #1 as Employee of the Month.
7. Award badges using configured min point thresholds.
