TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: Tariff Calculator for Amazon

35 pointsby wyxuan19 days ago
I made a simple tariff calculator extension for Amazon.<p>It queries gemini flash 2.0 to determine the category, and then matches it with the corresponding tariff category.<p>Fun quick hack – it does brick a little – but the majority of the code was cobbled by a first pass of Claude Code<p>Repo is here: <a href="https:&#x2F;&#x2F;github.com&#x2F;mergd&#x2F;amzn-tariff">https:&#x2F;&#x2F;github.com&#x2F;mergd&#x2F;amzn-tariff</a>

3 comments

Ecco19 days ago
Fun! That being said, I think that the extension is very inaccurate because it can&#x27;t know how much the product was actually paid for when imported from China (and therefore tariffed).<p>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&#x27;s margin. The price paid in bulk to manufacturers is usually a very small fraction of the retail price.
dharmab19 days 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.
kacesensitive19 days ago
I hope you have an automated way of pulling the tariff percentages.<p>Seems like it changes hour to hour.