Hi Krik
This is how the fee structure is managed. But this is not needed anymore and can be removed from the script.
0|0.0500
250|0.0400
5000|0.0350
For example, the default fee structure is set up as follows:
0|0.0600
50|0.0375
1000|0.0100
$0.01 - $50.00
6.00% of the closing value
$50.01 - $1,000.00
6.00% of the initial $50.00, plus 3.75% of the remaining closing value balance ($50.01-$1,000.00)
Equal to or Over $1,000.01
6.00% of the initial $50.00, plus 3.75% of the initial $50.01-$1,000.00, plus 1% of the remaining closing value balance ($1,000.01 - closing value)
That is what the top part of the script does, the bottom paret calculates the value.
I'm going to give this a bash and post my code here for if you guys can comment.