Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Group Balance Page and Cash Flow Minimization #158

Open
UtkuKaynak opened this issue Dec 24, 2024 · 0 comments
Open

Feature Request: Group Balance Page and Cash Flow Minimization #158

UtkuKaynak opened this issue Dec 24, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@UtkuKaynak
Copy link

UtkuKaynak commented Dec 24, 2024

Currently we cannot see the full summary of who owes whom and what amount for the groups. This would be nice because most of the time one person tries to coordinate the settling and tell who needs to transfer what amount etc. Its mostly needed for groups that came together once in a while, hence settling needs to be done on group level. It can be a table like below or a list.

	person0	person1	person2	person3	person4	person5
person0	0	8957.95	3280.43	0	50.35	0
person1	0	0	0	0	1261.15	833.33
person2	0	3245.6	0	0	0	0
person3	1746.24	115.02	5191.67	0	1572.84	158.33
person4	0	0	4000.5	0	0	129.16
person5	814.16	0	233.34	0	0	0

Also on the same page if we can have a button that would calculate and display the minimum amount of transfers to settle everyone in the group (cash flow minimization). I found an algorithm in below link, same can be used to do the calculation. To try, I downloaded json data from the app for one of our groups I had, and used the same algorithm to reduce 15 transactions down to 5. Above table is also from the same json and output is like below.

Person 0 pays 9728.33 to Person 1
Person 3 pays 8784.10 to Person 2
Person 4 pays 676.24 to Person 2
Person 4 pays 495.76 to Person 1
Person 4 pays 73.32 to Person 5

https://www.geeksforgeeks.org/minimize-cash-flow-among-given-set-friends-borrowed-money/

@KMKoushik KMKoushik added the enhancement New feature or request label Jan 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants