What clearing adds, and which parts of it you control
The cost of getting a container out of Mombasa splits into two kinds. Duties, levies and VAT are assessed against a tariff and you cannot negotiate them. Agent fees, transport and handling are commercial and quoted, and they vary widely between agents for identical work.
Demurrage and storage belong in a third category: avoidable. Free time at the port is finite, and the clock runs whether or not your paperwork is ready. Importers who clear inside free time consistently are not getting better rates, they are getting documents in before the vessel arrives.
This estimator asks you to enter the amounts because they are not published. Any tool that claims to know your clearing agent fee is guessing at a number that moves between agents, between commodities and between consignments. What is worth automating is the arithmetic and the per-unit division, which is where the useful figure comes from.
Work your selling price from the per-unit landed cost. An importer pricing off the supplier invoice is pricing off roughly half to two-thirds of what the goods actually cost by the time they are on a shelf in Nairobi.