# 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.