Calculate the quantity and cost of gems in D3:RoS