href / duties

Swiss Online Import Costs Calculator
MIT License
4 stars 1 forks source link

Post has a cap at 70CHF handling fee #1

Closed OneLineTwoBugs closed 4 years ago

OneLineTwoBugs commented 4 years ago

See https://www.post.ch/de/geschaeftsloesungen/export-import-und-verzollung/export/swiss-post-gls/importkosten

Currently, the calculator keeps adding 3% of the value unlimited, but it should be capped at 70 (exkl MWST I think, not sure though)

href commented 4 years ago

Sorry for the late reply, did not see this issue until today 😓

I hope you don't mind I ask you now: Do you have an example where this is wrong? Ideally with a little calculation.

I'm asking, because in principle this should be observed. See the following calculation for Post:

https://github.com/href/duties/blob/78834589c94a7a12867efee06d2810ec1a2f0828/js/math.js#L4-L16

OneLineTwoBugs commented 4 years ago

The code looks fine, but the result seems wrong.

image

IMHO, the duty fee should be 70 in this example. As a result, the VAT should be (5000+50+70)x0.077 = 394.24, but the last one is probably fixed automatically if the first one is capped at 70 The reported 221.50 duty fee is suspiciously (5000+50)x0.03 + 70, so I assume that you add the 3% import fee again at a later point

href commented 4 years ago

Thanks for the details, I'll have a look (might take a few days).

href commented 4 years ago

I think I found the problem. The 3% was applied twice, once it was capped, once it was not. Hopefully it's correct now.

If not, feel free to reopen.

Thanks again for reporting this!