It seems like the $20k account size is not relevant because you had the slider set to $14k to make your $3k.

If you take $2k from your $3k then that leaves $1k profit.

So you put $14k and $1k (leaving the Root at 2) in the InvestCalculator script and that gives you $14,491 as your new slider value.

Attached Files invest_calc.PNG