top | item 43840119

Show HN: Tariff Calculator for Amazon

35 points| wyxuan | 10 months ago |twitter.com

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

3 comments

order

Ecco|10 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|10 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|10 months ago

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

Seems like it changes hour to hour.