A specialized web application designed for calculating packaging carton prices for Primark. This tool streamlines the cost estimation process by factoring in manufacturing origins, material specifications, and dynamic fee structures.
- Manufacturer Origin: Select from verified production regions (e.g., Bangladesh, India, China).
- Material Selection: Choose specific Flute Types (C32, C40, BC40) based on origin capabilities.
- Carton Styles: Toggle between "Standard Footprint" (pre-defined sizes) and "Custom Footprint" (flexible dimensions).
- Dynamic Calculations: Automatically computes Unit Price, Total Area, and Total Price.
- Fee Structure:
- Program Management Fee: Automatically applied at 5% (calculated from Total Price).
- Rebates: Configurable rebate logic for Primark.
- SQM Pricing: Base price set to $0.75 per m² for custom dimensions.
- SQM Formula: Uses flute-specific trim formulas with 8% wastage.
The application uses specific formulas based on Flute Type:
For C Flute (C32, C40):
- Sheet Length (L):
2 × (Length + Width) + 15(mm) - Sheet Width (W):
(Width + Height) - 10(mm)
For BC Flute (BC40):
- Sheet Length (L):
2 × (Length + Width) + 11(mm) - Sheet Width (W):
(Height + Width) - 16(mm)
Area Calculation (All Types): ((L × W) / 1,000,000) × 1.08 (Includes 8% Wastage)
- Dedicated Print View: Generates a clean, branded A4 Quote/Estimate using a separate layout engine (
pdf_export.html). - Smart Layout: Automatically organizes specifications, dimensions, and cost breakdowns.
- Reliable Generation: Supports both automated PDF download and robust "Print to PDF" (Ctrl+P) capabilities.
- Configure: Select your Origin, Flute Type, and Carton Style.
- Input: Enter dimensions (if custom) and the required Carton Quantity.
- Calculate: Click Calculate Price to see the detailed cost breakdown.
- Export: Click Export PDF to generate a formal quote document.
- Frontend: Plain HTML, CSS, and JavaScript for maximum portability and speed.
- Styling: Custom CSS variables for consistent branding (Navy Blue & Red), featuring glass-morphism effects.
- PDF Generation: Utilizes
html2pdf.jswith a dedicated print stylesheet for pixel-perfect A4 references. - Icons: Integrated Lucide icons for a modern UI feel.
- v2.5 — PDF Cross-Device Fix (Feb 2026): Fixed PDF exports looking different on different devices by switching from
mmto fixedpxunits (794×1123px) in the rendering pipeline — ensuring identical output regardless of device DPI or screen size. - v2.4 — Pricing Update (Feb 2026): Reduced base SQM rate from $0.80 to $0.75.
- v2.3 — C-Flute Formula (Feb 2026): Updated blank sheet calculation for C-Flute with corrected formula.
