Nakodo prices in pounds, and visitors from 66 countries see their own currency instead. The conversion is one function in src/lib/pricing/currency.ts, and the comment above it states the rule:

A converted price is the pound price times the rate, plus 4%, rounded up to the next whole amount ending in 9.

I wrote that comment in October and never checked what it does in aggregate. Today I copied the file out, ran it for both paid plans (£39 and £119) in all 22 non-pound currencies, and compared each result with the plain pounds * rate.

The floor is 4.01%, the ceiling is 15.14%

The margin is 4% on paper. Measured against the unrounded conversion, the 44 prices land between 4.01% and 15.14%, with a median of 4.73%.

Where the extra comes from is rounding up to the next number ending in 9, which is a bigger step for a price that is small in its own currency:

Currency £39 shown Unrounded Over
Swiss franc CHF 49 42.56 15.14%
US dollar $59 51.48 14.60%
New Zealand dollar $99 91.74 7.91%
Canadian dollar $79 73.31 7.76%
Euro €49 45.86 6.84%
Japanese yen ¥8,449 8,117.46 4.08%
Indian rupee ₹5,159 4,959.24 4.03%
Hungarian forint 17 619 Ft 16,932.24 4.06%

A franc price of 44.26 (the 4% margin included) has to become 49, because the next number ending in 9 is nearly five francs away. A yen price of 8,449 only has to clear 8,442. The rule is the same and the cost is not. At £119 the dollar drops from 14.6% to 7.58% over, and the franc from 15.14% to 7.04%, because the same ten-unit step is a smaller share of a bigger number.

So "we add 4%" is true to within a percentage point for 26 of the 44 prices, and not true for the dollar, the euro and the franc on the cheaper plan. The other 18 are over by 5.6% to 15.1%. I would rather say that here than leave the comment as the whole story. Whether a $59 plan looks fairer than $55 is a pricing question I have not tested. The code does what the comment says.

Rounding to a 9 is five lines

function endInNine(amount: number): number { const whole = Math.ceil(amount - 1e-9); return whole + ((19 - (whole % 10)) % 10); } 

The 1e-9 stops floating point error pushing an exactly whole amount up a unit: without it, a computed 139.00000000000003 would become 149. The (19 - whole % 10) % 10 is the distance to the next 9, and it is 0 when you are already on one.

Whole numbers, because the page says so

formatMinorUnits drops the decimals when the amount is whole, so the page says "€49" and not "€49.00". Because every converted price ends in 9, none of them ever has cents. The format is Intl.NumberFormat with the currency's own locale, and the locale table has one note I like: Israel uses en-IL, because he-IL adds right-to-left marks into a price that sits in the middle of an English sentence.

Minor units are not what Stripe thinks they are

There are two different "digits" in play, and they disagree for exactly two of the 22 currencies:

Currency Written with Stripe counts in
Yen 0 decimals whole yen
Forint 0 decimals hundredths
Icelandic króna 0 decimals hundredths

Intl says the forint is written without decimals, and Stripe nevertheless wants 1761900 for a 17,619 Ft price. Yen is the only one of our currencies Stripe treats as zero-decimal, so the code keeps a one-element STRIPE_ZERO_DECIMAL set and derives everything else. A unit test pins both: the forint and krona amounts must be exactly 100 times the shown price, and yen must equal it. If a currency were added with the wrong assumption, the checkout would charge a hundredth or a hundred times the price, and the page would still look right.

What you can check

/pricing renders the visitor's price in the HTML, per request. Crawlers are matched on user agent and always get pounds, so the search listing is not in the currency of a datacentre. The same function feeds the Stripe session, so the figure on the page is the figure charged, and I have found no way to make them differ.

The rates are fixed from one day's ECB reference rates, deliberately not live, because they set the charge. That makes the real markup drift with the market. The 4% is a margin at the moment the rates were taken, and a fixed rate cannot promise it for ever.

The existing test only requires a converted price to be less than ten units above the rate plus margin. The open work is a test that fails when any converted price is more than, say, 12% over its unrounded value.