From Dev.to
The math behind Etsy fees: a tiny JavaScript model (and why cheap items hurt)
Marketplace fees look simple until you try to put them in code. Some are percentages, some are fixed, they apply to different bases, and one of them depends on how the buyer found you. I built Fee Mat...
