courier company consigns 200 boxes of glass for a customer. According to the contract, the shipping fee for each box is 30 yuan. If a box is damaged, the shipping fee will not be paid and 200 yuan will be compensated. After the delivery, the total shipping fee will be 4160 yuan.
某快递公司为客户托运200箱玻璃，按合同规定每箱运费30元，若损坏一箱不给运费并赔偿200元，运到后结算时共得运费4160元，共损坏了多少箱？
<gadget id="calculator">6_000 - 4_160</gadget>
<output>1_840</output>

<gadget id="calculator">30 + 200</gadget>
<output>230</output>

<gadget id="calculator">1_840 / 230</gadget>
<output>8</output>

<result>8</result>