Update function getCapital in Broker.php