Fix stock purchase value computation