Final invoices in 4 days, not 6 weeks

Six weeks per invoice

The client mines and concentrates copper at 3,500 m and trucks the concentrate 400 km to a port warehouse, where it ships in lots of 5,000 to 10,000 wet metric tonnes to two traders. Each contract prices payable copper on the LME average over a quotational period (QP), deducts treatment and refining charges (TC/RC) and penalizes arsenic above a threshold.

Every truck produced a weighbridge ticket at the mine and another at the port. Tickets, moisture determinations and assays lived in three spreadsheets kept by three teams, and reconciling them into dry tonnage and payable copper per lot took a commercial analyst most of each month. Provisional invoices carried errors, and final invoices went out six weeks after the QP closed.

Assays were the other bottleneck. Seller and buyer each assay their own sample and exchange results. A difference within the contract’s splitting limit is split down the middle; a larger one goes to an umpire lab, whose fee usually falls on the party whose result was further off. Most contracts let the parties try to agree before calling the umpire, but the client could not: nobody trusted the internal assays enough to argue from them, so every exchange outside the limit went to an umpire.

What one invoice depends on

  1. Wet tonnes per lot, from the weighbridge tickets.
  2. Moisture, to get dry tonnes.
  3. The copper assay, with the contract’s payable percentage and minimum deduction, to get payable copper.
  4. The LME average over the QP.
  5. TC per dry tonne and RC per payable pound.
  6. The arsenic penalty, per step above the threshold.
  7. For the final invoice, the provisional payment already received.

Every line differs by contract and can change with an amendment. The client’s ERP sees an invoice as quantity times price. The two commodity trading modules the client evaluated assumed a trader’s back office with a stable connection, and neither handled moisture determinations at the mine.

What we built

A single model of the operation in which every truck, lot, shipment and invoice carries the weights, moisture determinations and assays that describe it.

The system runs on a server at the mine and syncs with the port and head office whenever the link allows.

Two surprises

In the first month, mine and port tickets disagreed beyond tolerance on far more trucks than transit losses could explain. A few trucks were losing concentrate, but most of the gap was the port weighbridge reading low. The port recalibrated it, and the client invoiced the corrected tonnage on every lot not yet settled.

Midway through the first quarter, a contract amendment changed how the arsenic penalty was calculated, in a form the model could not yet express. We extended the running system without stopping ticket capture, and the next provisional invoices used the new scale.

Results

BeforeAfter
Final invoice after the QP closes6 weeks4 days
Lots referred to an umpire a year103

Provisional dry tonnage and payable copper now come within 0.5% of the final figures, where they used to carry frequent errors, and the commercial analyst spends the month reviewing exceptions instead of rebuilding the spreadsheets. The 4 days apply to lots settled without an umpire. The final balance, what remains after the provisional payment, now settles about 5 weeks sooner per shipment, whichever way the price moved.

The commercial analyst enters new contracts and amendments. We are called when a contract introduces a pricing term the model has not seen before, as the arsenic amendment did.