Calculating purchase amount when buying stake/action