I have a database that keeps track of several "bank" accounts and the total value of all deposits - withdrawals. All the accounts combined equal the pot.
The post grows and shrinks according to how the post is invested (kinda like a fund). In turn the indivual accounts grow or shrink.
The question is:
1. Is it better to calculate the total growth as a percentage and apply that percentage to each account: The pot grew 10% today so account 'b' grew 10%.
OR
2. Should I calculate the percentage that each account is of the pot and allocate that percentage of the total growth to the account: The pot grow by $1000 and account 'b' is worth 10% of the pot an in turn receives $100 (10% of the growth).
_______________________________
Some of the variables:
-Different accounts have different terms (ie. 70% of the profit goes to the account holder and 30% to the 'house').
-The individual accounts can change at any time.
-The managers have accounts and are paid to their accounts from other accounts.(I'm thinking of adding a "transfer" column to accomodate this.
Any suggestions welcomed gratefully.
The post grows and shrinks according to how the post is invested (kinda like a fund). In turn the indivual accounts grow or shrink.
The question is:
1. Is it better to calculate the total growth as a percentage and apply that percentage to each account: The pot grew 10% today so account 'b' grew 10%.
OR
2. Should I calculate the percentage that each account is of the pot and allocate that percentage of the total growth to the account: The pot grow by $1000 and account 'b' is worth 10% of the pot an in turn receives $100 (10% of the growth).
_______________________________
Some of the variables:
-Different accounts have different terms (ie. 70% of the profit goes to the account holder and 30% to the 'house').
-The individual accounts can change at any time.
-The managers have accounts and are paid to their accounts from other accounts.(I'm thinking of adding a "transfer" column to accomodate this.
Any suggestions welcomed gratefully.