To compute for your profit, you just have to deduct your operating expenses to your gross margin. The gross margin is already the gross profit you have earned which is computed by deducting cost of goods sold to the revenue.
23,487 (gross margin) – 8,123 (operating expenses) = 15,364 (profit)