I have a bunch of transactions (deposits/withdrawals) that i want to track a running balance for, but the trick is this - there is an automation of the balance that will skim money off when the balance goes over a certain balance so that not too much cash is left in this account ( think risk, security etc).I'm trying to work out the optimal level this 'skimming' should occur so that we don't have to top the account up either.
Target - using $1000 skim balance
| ID | Type | Amount | Running Balance |
|---|---|---|---|
| 1 | Deposit | 100 | 100 |
| 2 | Deposit | 150 | 850 |
| 3 | Deposit | 1500 | 1000 (capped) |
| 4 | Withdrawal | 100 | 900 |
| 5 | Deposit | 500 | 1000 ( capped) |
| 6 | Deposit | 150 | 1000 (still capped) |
Appreciate any assistance that you can offer.