Settings

Theme

Show HN: Tariff Calculator for Amazon

twitter.com

35 points by wyxuan 8 months ago · 3 comments · 1 min read

Reader

I made a simple tariff calculator extension for Amazon.

It queries gemini flash 2.0 to determine the category, and then matches it with the corresponding tariff category.

Fun quick hack – it does brick a little – but the majority of the code was cobbled by a first pass of Claude Code

Repo is here: https://github.com/mergd/amzn-tariff

Ecco 8 months ago

Fun! That being said, I think that the extension is very inaccurate because it can't know how much the product was actually paid for when imported from China (and therefore tariffed).

I would argue the 40% estimate, even though probably correct some of the time, is very often vastly overestimated. Consumers mostly pay for last-mile delivery, marketing, and the retailer's margin. The price paid in bulk to manufacturers is usually a very small fraction of the retail price.

dharmab 8 months ago

Note that tariff categories can be pretty tricky. For example, a board game might be imported as a toy (125%) or as a table or parlor game (20%). Both categories are valid choices, and it simply depends on which the importer specified on the paperwork.

kacesensitive 8 months ago

I hope you have an automated way of pulling the tariff percentages.

Seems like it changes hour to hour.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection