Those were the bid & ask of EURUSD & SPY at the time of writing that post. I just assumed making a transaction and closing it, at the market bid & ask.
So for FX $100k divide by 1.1152 to go long EURUSD then multiplied by 1.1150 to close the position back into base currency (USD in this case). No commissions were subtracted, just 2 pips spread which is very typical of FX.
SPY (share) is pretty simple, $100k divide by the stock ask price, 206.01 to get number of shares, multiplied by the bid (206.00) to sell the shares, then minus the commissions.