定价负责人面临"关税跳档后两天才改价、税基与取整口径还不一致"——CIF 税基复合税成本加成把税率变动当日传导到建议价并守住目标毛利,年化避免毛利侵蚀与低报补税 ¥15~30 万
关税成本加成定价 — 税基是 CIF,复合税两项相加,取整只能向上
Skill-Cost-Plus-Dynamic-Tariff-Pricing
¥15~30 万
待企业数据验证 · 缺失:样本、基线、时间窗、币种、计算方法、证据来源
1. 解决的问题
定价负责人面临"关税跳档后两天才改价、税基与取整口径还不一致"——CIF 税基复合税成本加成把税率变动当日传导到建议价并守住目标毛利,年化避免毛利侵蚀与低报补税 ¥15~30 万
2. 核心算法逻辑
计算链路(顺序不可换)
1) 汇率折算:采购价/运保费一律折成完税币种;币种不在汇率表 → UNKNOWN_CURRENCY,拒算
2) 税基:CIF = 货值 + 运费 + 保险(不是 FOB)
3) 税则行:查不到 → UNKNOWN_HTS;表版本过期 → STALE_TARIFF;两者都不出价
4) 免税通道:de minimis 比的是**整票申报货值**,且商业批量走免税要判 DE_MINIMIS_ABUSE
5) 税额:从价 = CIF × 税率;从量 = 件数 × 单位税额;复合 = 两者**相加**
6) 成本 = CIF + 关税 + 关税手续费/清关费
7) 建议价 = 成本 / (1 − 目标毛利 − 平台费率),**向上**取整到最小价格档
8) 回验:取整后的实际毛利 ≥ 目标毛利,否则这条价格不成立三种"0"必须区分开
| 情形 | 语义 | 输出 |
|---|---|---|
basis: exempt | 法定免税品类 | duty 0,正常出价 |
ad_valorem: 0.0 | 有税率且为 0 | duty 0,basis=AD_VALOREM,正常出价 |
| 税则行缺这两个字段 | 漏配 | UNKNOWN_RATE,拒判 |
把漏配当成 0 税率是本模块最贵的错误:它会静默给出一整套偏低的价格。
与"动态定价"的分工
本卡算的是底价传导(成本变了价格下限必须跟着动),不是需求侧最优价。 弹性与竞争响应见 Skill-Dynamic-Pricing 与 Skill-Price-Elasticity-Estimation; 归类本身(HS/HTS 编码怎么定)见 Skill-HTS-Agentic-Tariff-Classification。
③ 实测锚点:CIF 34.5 的复合税是 2.99(34.5×7.5% + 从量 0.4,两项相加);同一票按 FOB 30 只算出 2.65,单件低报 0.34。税率 7.5%→25% 时建议价 64.5→74.55,两种情况下实际毛利都守住 25.0%(取整只向上)。210 CNY 批次折成 33.81 USD 税后建议价 63.25,低于 30 USD 批次——票面价看不出来。漏配税率的税则行判 UNKNOWN_RATE 拒出价,而 ad_valorem: 0.0 的 0% 行照常出价。
⚠️ ③ 里的税率、免税门槛、汇率全是测试夹具。真实运行必须注入当前税则表版本与汇率源, 并把"版本日期 + 判定结果"落审计轨迹;版本过期就停止出价。
3. 业务应用场景
痛点:税率公告出来后靠 Excel 重算 300 个 SKU,两天后才改价,且部分 SKU 为保毛利直接跟涨, 把转化率打掉的同时并没有守住毛利(因为税基与取整口径不一致)。
做法:税则表更新 → 本卡按 SKU 重算 CIF 税基与复合税 → 输出建议价与实际毛利回验值 → 价格传导分档(守住毛利的最小涨幅先改,其余进人工复核清单)→ SP-API 批量推送。
量化产出: - 重算时间从 2 天 → 当日,且改价幅度是"守住目标毛利的最小涨幅"而不是经验值; - 实测单件税基口径纠正带来 0.34/件 的低报差额,按 300 SKU × 月 2 万件出货, 仅补税与罚款风险敞口就在 ¥15 万/年 量级; - 取整方向纠正保住的是尾差毛利:向下取整平均吃掉 0.02~0.03 毛利点,规模化后是纯利。
4. 输入数据要求
未提取到输入条目;请核对原始 Skill 卡片与代码。
5. 输出结果
未提取到输出条目;请核对原始 Skill 卡片与代码。
6. 业务价值与 ROI
- ROI 预估:
- 税率跳档当日内完成全量 SKU 重算与改价(原 2 天),按 300 SKU、单 SKU 月销 800 件估,
- 税基口径从 FOB 纠正到 CIF,消除低报税基的补税+罚款敞口(③ 实测单件差 0.34);
- 漏配税率与过期税则表改为拒判,避免"静默给低价"造成的整批错价;
- 年化综合 ROI:¥15~30 万,另含一次海关稽查的合规证据链价值
- 实施难度:⭐⭐☆☆☆(纯确定性计算,难点在税则表与汇率的版本治理,不在算法)
7. 代码模板
代码块数量:2
STALE_DAYS = 30
def landed_unit_cost(q, fx):
"""完税价格基础:CIF 口径要把运保费算进去,只按 FOB 算会系统性低报税基。"""
cur = q["currency"]
if cur not in fx:
return None, "UNKNOWN_CURRENCY"
rate = fx[cur]
goods = q["unit_price"] * rate
freight = q.get("freight_per_unit", 0.0) * rate
insurance = q.get("insurance_per_unit", 0.0) * rate
return {"goods": goods, "cif": goods + freight + insurance, "freight": freight, "fx": rate}, "OK"
def duty(q, base, tariff, decl_value_usd=None):
t = tariff[q["hts"]]
if t["basis"] == "exempt":
return 0.0, "EXEMPT"
if t.get("de_minimis") and decl_value_usd is not None and decl_value_usd < t["de_minimis"]:
if q.get("commercial_quantity"):
return None, "DE_MINIMIS_ABUSE" # 商业批量走免税通道,属申报口径错误
return 0.0, "DE_MINIMIS"
has_ad = "ad_valorem" in t
has_sp = "specific_per_unit" in t
if not (has_ad or has_sp):
return None, "UNKNOWN_RATE" # 税则行没有可算的税率字段,不能当 0 税率放行
ad = base["cif"] * t.get("ad_valorem", 0.0)
sp = q["units_in_set"] * t.get("specific_per_unit", 0.0)
# 0% 从价税是「有税率且为 0」,与「没配税率」必须区分,否则漏配会伪装成免税
kind = "COMPOSITE" if (has_ad and has_sp) else ("AD_VALOREM" if has_ad else "SPECIFIC")
return ad + sp, kind
def suggest_price(q, base, dut, tariff, target_margin, platform_fee, rounding=0.05):
import math
cost = base["cif"] + dut + q.get("duty_broker_fee", 0.0)
denom = 1.0 - target_margin - platform_fee
if denom <= 0:
raise ValueError(f"目标毛利+平台费≥100%,无解:{target_margin}+{platform_fee}")
raw = cost / denom
price = math.ceil(raw / rounding) * rounding # 向上取整,避免取整吃掉毛利
margin = (price - cost - price * platform_fee) / price
return round(price, 2), round(margin, 4)
def assess(q, tariff, fx, as_of_day, tariff_day, decl_value_usd=None):
if as_of_day - tariff_day > STALE_DAYS:
return {"status": "STALE_TARIFF"}
if q["hts"] not in tariff:
return {"status": "UNKNOWN_HTS"} # 查不到税则行不出价,归类未定就不能算成本
base, st = landed_unit_cost(q, fx)
if st != "OK":
return {"status": st}
dut, kind = duty(q, base, tariff, decl_value_usd)
if dut is None:
return {"status": kind}
price, margin = suggest_price(q, base, dut, tariff, q["target_margin"], q["platform_fee"])
assert margin >= q["target_margin"] - 1e-9, f"取整后毛利不得低于目标:{margin}"
return {"status": "OK", "basis": kind, "duty": round(dut, 2), "price": price, "margin": margin,
"duty_share_of_cost": round(dut / (base["cif"] + dut), 4)}
def run_demo():
tariff = {"4202.92": {"basis": "composite", "ad_valorem": 0.075, "specific_per_unit": 0.4,
"de_minimis": 800.0},
"8517.62": {"basis": "ad_valorem", "ad_valorem": 0.0},
"9403.20": {"basis": "specific", "specific_per_unit": 6.0},
"0403.90": {"basis": "exempt"}}
fx = {"USD": 1.0, "CNY": 0.14}
q = {"hts": "4202.92", "unit_price": 30.0, "currency": "USD", "freight_per_unit": 4.0,
"insurance_per_unit": 0.5, "units_in_set": 1, "duty_broker_fee": 1.2,
"target_margin": 0.25, "platform_fee": 0.15}
r = assess(q, tariff, fx, 40, 20)
assert r["status"] == "OK" and r["basis"] == "COMPOSITE", r
cif = 30.0 + 4.0 + 0.5
assert abs(r["duty"] - round(cif * 0.075 + 0.4, 2)) < 1e-9, r
assert r["duty"] == round(cif * 0.075 + 0.4, 2), "复合税是两项**相加**,不是取高"
fob_only = {"cif": 30.0, "goods": 30.0, "freight": 0.0, "fx": 1.0}
assert duty(q, fob_only, tariff)[0] < r["duty"], "按 FOB 算税基会少缴——税基必须是 CIF"
hiked = {**tariff, "4202.92": {**tariff["4202.92"], "ad_valorem": 0.25}}
r2 = assess(q, hiked, fx, 40, 20)
assert r2["price"] > r["price"] and abs(r2["margin"] - r["margin"]) < 0.01, \
f"关税 7.5%→25% 必须传导到售价且守住毛利:{r['price']}→{r2['price']}"
assert r2["duty_share_of_cost"] > r["duty_share_of_cost"]
small = assess(q, tariff, fx, 40, 20, decl_value_usd=120.0)
assert small["status"] == "OK" and small["basis"] == "DE_MINIMIS" and small["duty"] == 0.0, small
assert small["price"] < r["price"], "免税通道要体现为更低的可售成本,否则免税无意义"
abuse = assess(dict(q, commercial_quantity=True), tariff, fx, 40, 20, decl_value_usd=120.0)
assert abuse["status"] == "DE_MINIMIS_ABUSE", "商业批量走免税申报要拦,不是自动免税"
# 免税门槛比的是**整票申报货值**,不是单价:单价 30 不等于一定免税
ok_big = assess(q, tariff, fx, 40, 20, decl_value_usd=5_000.0)
assert ok_big["basis"] == "COMPOSITE", ok_big
spec = assess({**q, "hts": "9403.20", "units_in_set": 2}, tariff, fx, 40, 20)
assert abs(spec["duty"] - 12.0) < 1e-6 and spec["basis"] == "SPECIFIC"
assert assess({**q, "hts": "0403.90"}, tariff, fx, 40, 20)["duty"] == 0.0
assert assess({**q, "currency": "EUR"}, tariff, fx, 40, 20)["status"] == "UNKNOWN_CURRENCY", "缺汇率不得按 1.0 折算"
cny = assess({**q, "unit_price": 210.0, "currency": "CNY",
"freight_per_unit": 28.0, "insurance_per_unit": 3.5}, tariff, fx, 40, 20)
assert abs(cny["duty"] - round(33.81 * 0.075 + 0.4, 2)) < 1e-9, cny
assert cny["price"] < r["price"], "210 CNY ≈ 29.4 USD,折算后应低于 30 USD 版本"
zero = assess({**q, "hts": "8517.62"}, tariff, fx, 40, 20)
assert zero["duty"] == 0.0 and zero["basis"] == "AD_VALOREM", "0% 从价税是「有税率且为 0」,不是漏配"
assert assess({**q, "hts": "9503.00"}, tariff, fx, 40, 20)["status"] == "UNKNOWN_HTS", "查不到税则行不出价"
no_rate = {**tariff, "9503.00": {"basis": "unknown"}}
assert assess({**q, "hts": "9503.00"}, no_rate, fx, 40, 20)["status"] == "UNKNOWN_RATE"
assert assess(q, tariff, fx, 100, 20)["status"] == "STALE_TARIFF", "税则表过期要拒出建议价"
try:
assess({**q, "target_margin": 0.9}, tariff, fx, 40, 20)
raise AssertionError("目标毛利+平台费≥100% 应无解报错")
except ValueError:
pass
print(f"[✓] 关税成本加成定价测试通过(复合税 {r['duty']:.2f}=CIF{cif:.1f}×7.5%+从量0.4,两项**相加**不是取高;"
f"按 FOB 算税基会少缴 {round(r['duty']-duty(q, fob_only, tariff)[0],2)};"
f"税率 7.5%→25% 传导到建议价 {r['price']}→{r2['price']} 且毛利守住 {r2['margin']:.1%};"
f"210 CNY 折算后 {cny['price']};免税门槛看整票申报货值,商业批量走免税被拦;"
f"缺汇率/税则过期/查不到税则行/漏配税率一律拒判,0% 从价税仍正常出价)")
if __name__ == "__main__":
run_demo()8. 论文来源
论文链接用于核验方法来源,不自动证明本页商业结果。
未自动抽取;请查看原始 Skill 卡片。