calculate_price_to_sales
Calculate the price-to-sales (P/S) ratio: market capitalisation divided by revenue — how much investors pay per unit of sales. Formula: Price-to-Sales = Market Capitalisation / Revenue. WHEN TO USE: Use for valuing companies with no (or negative) earnings where P/E is meaningless — high-growth, early-stage, or cyclical-trough businesses. WHEN NOT TO USE: Do NOT use in isolation — P/S ignores profitability entirely; pair it with margin context (e.g. calculate_net_margin) and compare against peers. BEHAVIOUR: pure deterministic calculation — no side effects, no network or storage access; idempotent and non-destructive; identical inputs always produce identical outputs. Division by zero or non-finite inputs returns an explicit error instead of a number. RETURNS: JSON object { price_to_sales: number (e.g. 3.0 = 3.0x), inputs }. PARAMETERS: market_capitalization (required): Market capitalisation (share price x shares outstanding), e.g. 9000000. Must be > 0. revenue (required): Revenue (net sales) over the trailing period, e.g. 3000000. Must be > 0.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| revenue | Yes | Revenue (net sales) over the trailing period, e.g. 3000000. Must be > 0. | |
| market_capitalization | Yes | Market capitalisation (share price x shares outstanding), e.g. 9000000. Must be > 0. |