๐ธGroup Expense Splitter (Who Owes Whom) Documentation & Guide
๐How to Settle Group Expenses
- Choose Currency & Add Participants: Enter each participant's name and how much they paid out of pocket.
- Calculate Net Balances: Click Calculate Settlement to determine total spend and the equal share per person.
- Send Minimal Transfers: Follow the exact Who-Pays-Whom transfer list to settle the group cleanly.
โ๏ธGreedy Debtor-Creditor Settlement Matchingโผ
Rather than generating N*(N-1) pairwise transfers, each participant's net delta (paid minus equal share) separates the group into net debtors and creditors, greedily pairing largest debtor and creditor balances until settled.
๐Formula & Mathematical Architectureโผ
NetBalancei = Paidi − EqualShare
๐งฎConcrete Worked Examplesโผ
Alex โฌ184.50, Sam โฌ92.00, Taylor โฌ43.50, Jordan โฌ0โฌ80.00/person ยท Jordan pays Alex โฌ80, Taylor pays Alex โฌ24.50, Sam overpaid โฌ12Equal share is โฌ320 / 4 = โฌ80 per person, settled in 2-3 minimal transfers.
Maya $126, Chris $24, Liam $0$50.00/person ยท Liam->$50 Maya, Chris->$26 MayaOnly two transfers settle all three diners completely.
โ ๏ธCommon Pitfalls & Edge Casesโผ
- โ ๏ธPaying back one person twice when net positive payers aren't separated from net debtors.
- โ ๏ธRounding transfer cents unevenly causing totals to drift by a penny.
- โ ๏ธForgetting to include participants who paid โฌ0 in the headcount.
๐กWhere Group Splitting Helpsโผ
- Settling weekend trips where different people paid for groceries, fuel, and tickets.
- Dividing shared office lunch or dinner tabs without manual spreadsheet math.