I tried selling one gold bar to a port and then using the "calculate" button to estimate cost to buy it back but the estimated cost was zero. If I added some of the trade goods sold by the port then it would estimate for the trade good but the gold bar cost was not included.
-Captain D