# Lattice Forecourt — Rule-Based Pricing Workflow > Deterministic fuel-pricing workflow with specialist checks, margin floors, change caps and rounding. No live AI/model agents or actual commercial price changes. - Canonical URL: https://khanbot.co.technology/ - Methodology & Equations: https://khanbot.co.technology/methodology/ - Interactive Browser Runtime: https://khanbot.co.technology/run/ - Author & Root Entity: Mohammad Rezwan Khan, PhD (https://mrkhan.co.technology/#person) - Ecosystem Directory: https://mklab.co.technology/ - Knowledge Graph JSON-LD: https://khanbot.co.technology/knowledge-graph.jsonld ## Governing Mathematical Formulation & Units - Formula: `p_market = median(M); p_floor = c_mills + m_min; p_capped = clamp(p_target, p_0 − Δ_max, p_0 + Δ_max); p_final = round_to_tick(max(p_capped, p_floor), τ_mills)` - Units: All monetary prices, costs, margins, caps, and rounding ticks in integer mills per litre (1,000 mills = 1.00 currency unit); volume in millilitres (mL). ## Reproducible Worked Example Case 1 (Current price p_0 = 1,600 mills/L, wholesale cost c = 1,400 mills/L, competitor market = [1,610, 1,640, 1,650] mills/L, min margin = 100 mills/L, max change cap = 100 mills/L, rounding tick = 10 mills/L): Market median is 1,640 mills/L. Margin floor requires ≥ 1,500 mills/L (passed). Change cap allows [1,500, 1,700] mills/L (passed). Tick rounding at 10 mills preserves 1,640 mills/L, so the deterministic gate status is 'Clear' with Proposal = 1,640 mills/L. ## Benchmark Table | Case ID | Cost (mills) | Current (mills) | Market Median | Floor / Cap Rule | Proposed (mills) | Gate Status | | --- | --- | --- | --- | --- | --- | --- | | Case 1 (Standard Clear) | 1,400 | 1,600 | 1,640 | Floor 1,500 / Cap ±100 | 1,640 | Clear | | Case 2 (Cap Bound) | 1,450 | 1,580 | 1,720 | Floor 1,550 / Cap ±80 | 1,660 | Capped | | Case 3 (Floor Conflict) | 1,560 | 1,600 | 1,620 | Floor 1,680 / Cap ±50 | Blocked | Floor vs Cap Conflict | ## 5-Domain Core Authority Ecosystem 1. Hub & Authority: https://mrkhan.co.technology/ (Mohammad Rezwan Khan, PhD - BESS QA/QC & Energy R&D) 2. Interactive Course & Twin: https://khanlab.co.technology/ (Datacenter Power Systems & What-If Simulator) 3. Microgrid Research: https://mkgrid.co.technology/ (HelioForge Energy Lab - Hybrid Energy Research) 4. Synthetic Energy Trading: https://mktrade.co.business/ (ZephyrTrade - Wind-Market Synthetic Backtesting) 5. Utility & Tool Suite: https://mklab.co.technology/ (MKLab - 68 Free Browser Engineering & Planning Apps)