可复现示例
示例输入revenue=125000
cost=76000 预期结果 Gross profit: 49000
Formula: gross profit = revenue − cost of goods sold
Substitution: 125000 − 76000 = 49000
Gross margin: 39.2%
Formula: gross margin = gross profit ÷ revenue × 100
Substitution: 49000 ÷ 125000 × 100 = 39.2%
Cost ratio: 60.8%