Margin and market price calculator
The heart of the sales side. Enter the purchase price and the system works out the price for every market, including the buyer's country VAT, the marketplace fee and transport, and shows what is really left, also after tax.
Live exchange rates from the NBP API, table 235/A/NBP/2026 of 2026-12-03.
Inputs
Gross (with 23% input VAT, deductible): -
SELLING PRICE
-
-
OPERATING PROFIT
-
-
NET PROFIT
-
-
Where the selling price goes
From operating profit to net
Tax is simplified, per unit. In practice CIT/PIT is settled on the whole company's yearly income, not per transaction.
The same price in every market
Where it comes from
When selling abroad, VAT is due in the buyer's country and rates range from 20 to 27%. Add the marketplace fee and bulky transport. Doing this by hand for every product and market takes hours and a mistake of a few hundred zloty is easy.
What it gives
One engine prices the whole catalogue for all markets. The same function serves the product panel, the offer preview and currency repricing, so the numbers match everywhere.
⚙ How it works under the hood▼
Inputspurchase, fee, transport, margin
→Price algebradivision, not stacked mark-ups
→NBP rate + bufferonly when converting
→TaxCIT or PIT + health
→Resultprice and profit in 6 markets
Same algebra as the production calculateMarketPrice(): a 15% margin you enter is exactly 15% of the selling price.
JavaScriptNBP APIPHP 8