# Revenue Intelligence & Deal Attribution

**Document Version:** 2.0.0 (Phase 17)

---

## 1. Won Revenue Calculation

Won Revenue represents the sum of `leads.deal_value` for leads where `status = 'won'` with `won_at` falling inside the active date window.

```
Total Won Revenue = Σ (leads.deal_value WHERE status = 'won' AND won_at BETWEEN from AND to)
```

---

## 2. Multi-Currency Support

Revenues are displayed in the workspace's designated currency setting (`workspaces.currency`, default: USD), formatted safely using standard locale formatting.
