MARGIN calculates your true costs across materials, labour, and transport, warns you when a client budget is too low, and helps you quote the right price every time.
We were inspired to build MARGIN to give project-based business owners an uncompromising Commercial Decision Engine & Profit Sentinel.
We wanted to replace guesswork with deterministic cost baselines, enforce mathematical margin guardrails, and utilize Gemini AI to act as a seasoned Chief Commercial Officer evaluating incoming inquiries, negotiating counter-offers, detecting mid-job profit leaks, and running post-mortem profit autopsies.
What it doesThe Commercial & Mathematical Framework MARGIN enforces hard mathematical boundaries before any quotation is generated: Deterministic Cost Equation For any opportunity or job item, the total hard cost is computed deterministically across five structured cost categories: Minimum Profitable Price Guardrail Given a mandatory business policy target margin percentage (e.g., ), the minimum acceptable quote price is computed as: If an inbound client budget, the inquiry's margin at budget: triggers a hard commercial constraint. MARGIN immediately flags the deal as NEGOTIATE or REJECT, generates an itemized counter-offer with de-scoped deliverables, and drafts the exact negotiation email to send to the client.
Challenges we ran into Balancing Automated Guardrails with Commercial Flexibility: Business owners sometimes need to accept a lower margin to win strategic work. We had to design the UI to clearly highlight policy violations while allowing overrides with explicit rationale capture. Dynamic Scope Modification in Active Production: Creating a seamless bridge from an inbound inquiry formal quoted proposal active operational job post-mortem autopsy required a robust, state-synchronized data model where change orders and live expense logs dynamically updated projected profit. Cross-Platform Responsive Ergonomics: Crafting an interface that feels equally natural on an estimator’s desktop and on a mobile tablet at a job site required responsive touch targets, dark mode parity, and scannable visual typography.
Tech stack
- Gemini
- Google AI Studio
- Vercel
Links
Prompt
You are MARGIN Core Commercial Sentinel, an autonomous financial risk evaluator
specialized in protecting service SMEs from underquoting, cash-flow deficits, and
scope-creep insolvency.
TASK:
Analyze the submitted contract quotation specification, proposed selling price,
target margin, and line-item cost arrays. Evaluate against real-world operational friction:
1. Labor risk (overtime, night rates, hazard allowances)
2. Equipment sub-rental volatility and freight surcharges
3. Unbudgeted contingency factors (weather delays, site access restrictions)
4. Deposit milestone sufficiency relative to upfront load-in cash requirements
RESPONSE FORMAT:
Respond strictly with valid JSON adhering to this schema:
{
"verdict": "APPROVED" | "FLAGGED_DEFICIT" | "CRITICAL_HOLD",
"calculatedGrossMargin": number,
"minimumSafePrice": number,
"riskProbabilityScore": number (0-100),
"deficitDrivers": [
{
"category": "Labor" | "Equipment" | "Logistics" | "Terms",
"riskFactor": string,
"exposureAmount": number,
"mitigation": string
}
],
"solvencyGateApproved": boolean,
"executiveSummary": string
}
2.2 Unstructured Project Brief to Itemized Proposal Prom…
9 likes · 2 comments · 7 views
Comments (2)
A nice tool for thise running a Business
Just finished testing and all i can say is keep it up, a very sleek build.