Menu

The break-even script cannot print the number it tells you to look for
📰

The break-even script cannot print the number it tells you to look for

DEV Community: javascript·Riccardo Vitali·2 days ago
#vbd7tnLp
#devtojavascript#devto#dev#payment#access
Reading 0:00
15s threshold

This week a payments engineer posted a break-even model for bank API pricing, and the instinct is right. HM Treasury is asking whether open banking access stays free. If you build on that rail, the question is not whether banks start charging. It is whether your margin survives if they do.

So he wrote a script. A few lines, ten minutes, everyone can put their own numbers in. The post is worth reading .

The script asks one question: at what access fee does your margin hit zero?

Read it again. It cannot answer that.

const monthlyTxns = 20 _000 ; const yourFeePence = 25 ; const otherCostsPence = 6 ;

for ( const accessFeePence of [ 0 , 1 , 5 , 10 ]) { const marginPence = yourFeePence - otherCostsPence - accessFeePence ; console . log ( ` ${ accessFeePence } p: ${ marginPence } p/txn` ); }

Enter fullscreen mode

Exit fullscreen mode

Margin is linear in the access fee, and the array stops at 10. With 25p in and 6p of other costs, every row is positive: 19, 18, 14, 9. There is no zero in that list.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.