{"ok":true,"result":{"slug":"profit-margin-calculator","name":"Profit Margin Calculator","summary":"Profit, margin (profit ÷ price) and markup (profit ÷ cost) from cost and price, or the selling price for a target margin or markup.","description":"Work out profit, margin and markup from cost and selling price, or find the price you need to charge to hit a target margin or markup.","method":"POST","endpoint":"/api/v1/tools/profit-margin-calculator","plan":"free","mcpName":"profit_margin_calculator","input":{"type":"object","additionalProperties":false,"properties":{"mode":{"type":"string","description":"costPrice: value is the selling price. targetMargin: value is the desired margin %. targetMarkup: value is the desired markup %.","default":"costPrice","enum":["costPrice","targetMargin","targetMarkup"],"maxLength":200000},"cost":{"type":"number","description":"Cost per unit, in currency units.","minimum":0},"value":{"type":"number","description":"Selling price (costPrice), target margin in % below 100 (targetMargin), or markup in % (targetMarkup)."}},"required":["cost","value"]},"example":{"mode":"costPrice","cost":60,"value":100},"randomOutput":false,"network":false,"docs":"https://pithlab.com/developers/tools/profit-margin-calculator","page":"https://pithlab.com/tools/profit-margin-calculator"}}