Build charge analytics from a given list of charges

Given a collection of charge records (amount, timestamp, merchant, status, user), compute a set of aggregate analytics — for example totals and averages per merchant or per time period, top-N merchants by volume, refund/chargeback rates, and trends over time. Medium complexity; the focus is on clean data manipulation plus payments-domain reasoning.

asked …
LeaderboardSalaryAccount