Bundle price calculator
Open Bundle price calculator on Happytails.ai. This view has the same page content and links, with explicit tool capabilities. Read the processing notes before using a tool.
Tool capabilities
{
"id": "bundle-price-calculator",
"category": "business-tools",
"built": true,
"requirements": "Up to 50 item lines and 100,000 characters, with item names of up to 80 characters. Quantities from 1 to 1,000, separate prices from 0.01 and costs from 0, both up to 1,000,000,000. Discounts and target margins from 0 to 99.99 percent. Calculated on your device. Download a JSON report and CSV files.",
"implementation": {
"fields": [
{
"key": "method",
"label": "Set the bundle price by",
"value": "discount",
"type": "select",
"values": [
"discount",
"price",
"margin"
],
"labels": {
"discount": "Discount off the separate prices",
"price": "A bundle price I choose",
"margin": "Target bundle margin"
}
},
{
"key": "bundleDiscount",
"label": "Bundle discount (%)",
"value": "15",
"showWhen": {
"method": [
"discount"
]
},
"type": "text",
"inputMode": "decimal",
"maxLength": 32
},
{
"key": "bundlePrice",
"label": "Bundle price",
"value": "89.00",
"showWhen": {
"method": [
"price"
]
},
"type": "text",
"inputMode": "decimal",
"maxLength": 32
},
{
"key": "targetMargin",
"label": "Target bundle margin (%)",
"value": "45",
"help": "Margin is profit as a share of the bundle price, not a markup on cost.",
"showWhen": {
"method": [
"margin"
]
},
"type": "text",
"inputMode": "decimal",
"maxLength": 32
},
{
"key": "currency",
"label": "Currency code",
"value": "USD",
"type": "text",
"maxLength": 3,
"autoCapitalize": "characters"
},
{
"key": "precision",
"label": "Currency decimal places",
"value": "2",
"type": "select",
"values": [
"0",
"1",
"2",
"3",
"4",
"5",
"6"
]
},
{
"key": "rounding",
"label": "Rounding",
"value": "half-up",
"type": "select",
"values": [
"half-up",
"half-even",
"half-down",
"down",
"up",
"floor",
"ceiling"
],
"labels": {
"half-up": "Half up (ties away from zero)",
"half-even": "Half even (ties to even)",
"half-down": "Half down (ties toward zero)",
"down": "Toward zero (truncate)",
"up": "Away from zero",
"floor": "Toward negative infinity",
"ceiling": "Toward positive infinity"
}
}
],
"registrationFamily": "commerce-margins",
"presentation": "metrics",
"note": "The bundle price comes from a discount off the separate prices, a price you set or a target margin. It is shared across the items in proportion to their separate prices, in whole minor currency units that add up exactly to the bundle price. Processing stays on your device.",
"inputMaxLength": 100000,
"inputErrorCode": "COMMERCE_MARGINS_TOO_LONG",
"experience": {
"automatic": false,
"single": false,
"inputMaxLength": 100000,
"inputMode": "text",
"label": "Bundle items",
"placeholder": "item,price,cost,quantity",
"help": "One item per line: name, separate price, unit cost and optional quantity. Write numbers without thousands separators. Up to 100,000 characters. Review the settings before running.",
"helpParts": [
"One item per line: name, separate price, unit cost and optional quantity. Write numbers without thousands separators.",
"Up to 100,000 characters.",
"Review the settings before running."
],
"action": null
},
"mode": "explicit",
"interactive": false
},
"execution": "Browser interface",
"api": null,
"browser_agent": {
"supported": true,
"name": "run_current_tool",
"discovery": "WebMCP on the human page in a supporting browser",
"verification": "See audit/API-AUDIT.md; availability is not verification"
}
}Page guide
Price a product bundle by discount, fixed price or target margin, and see how the bundle price is shared across items with different margins. Spot items that lose money inside the bundle.
How to use Bundle price calculator
- Paste one item per line with its separate price, unit cost and quantity.
- Choose how to set the bundle price: a discount, a price you choose or a target margin.
- Calculate and review the bundle margin and the share each item earns.
- Download the report and the item CSV.
Useful next steps
Setting the bundle price
With a discount, the bundle price is the total of the separate prices times one minus the discount: 106.00 less 15% is 90.10 in the example. With a target margin, the price is the bundle cost divided by one minus the margin, rounded up so the margin never falls below the target. Margin is profit divided by price, which is not the same as markup on cost.
Sharing the price across items
Each item gets a share of the bundle price in proportion to its separate price times quantity. This is the relative stand-alone selling price method that IFRS 15 Revenue from Contracts with Customers (IASB, May 2014) uses to allocate a bundle price and its discount. Shares are whole minor currency units: each item first gets its share rounded down, and the units left go to the largest remainders, the Hamilton method described in Fair Representation by Balinski and Young (Yale University Press, 1982), so the shares add up exactly to the bundle price. In the example the dog bed earns 54.40 of the 90.10 price.
Mixed margins
Because the discount is spread by price, a low-margin item can earn less than its cost inside a profitable bundle, and the report flags those lines. The extra sales needed to match separate-sale profit is the separate-sale profit divided by the bundle profit, minus one: 64.10 divided by 48.20 means 32.99% more bundles. Unit costs are treated as fully variable, and the calculator does not predict how many more units a bundle will sell.