HomeToolsEnd-to-End Planner

🧮 Forecast → MPS → MRP → Capacity → Cost

Change the forecast. Watch it ripple to the purchase orders.

Five linked planning steps, the way they actually chain together in an operation. Build a seasonal forecast, net it into a production schedule, explode that through the bill of materials with time-phased MRP, check it against line capacity, and roll the whole thing up into cost and working capital. Everything recalculates on every keystroke. Nothing leaves your browser.

saved

1 · Demand forecast — baseline × seasonal index

This is the C-Class trap in miniature: set every index to 1.00 and the forecast becomes the annual average spread evenly — which is wrong in every single month for an event-driven product. The article explains why →

Forecast shape

2 · Master production schedule

Projected available = opening stock + production − forecast demand. When it would fall below the safety stock floor, a production order is raised and rounded up to the minimum batch and batch multiple. Production must start 21 days before the period it lands in.

Stock projection

3a · Bill of materials

ComponentQty/unitScrap %On handOn order Lead (d)MOQUnit costSource

CSV columns: Component,Qty per unit,Scrap %,On hand,On order,Lead time days,MOQ,Unit cost,Source. A header row is detected and skipped.

3b · Time-phased material requirements

Each component runs its own MRP record. Gross requirement comes from the production plan, projected available carries forward, and any planned order is offset backwards by the component lead time to give the release period. PAST means the release period is already behind us — that requirement cannot be met on the current plan.

4 · Capacity load

Enter available output per period. Load above 100% cannot be produced in that period — the plan has to be smoothed by building earlier, which pulls the material requirement earlier too. Change a capacity figure and step 3 does not move on its own; smoothing is a decision, not an automatic recalculation.

Load vs capacity

5a · Cost roll-up per finished unit

5b · Purchase commitment by period

This is the cash profile of the plan — when purchase orders are released, not when goods arrive or when invoices are paid. Payment terms shift it later; the commitment is made here.

Spend profile

Where this sits in the wider process

Steps 2 and 3 are the “Raw Material Availability Check” gate in the demand-to-delivery flow — the decision point that routes a plan either straight into production or into a three-to-six month procurement cycle.

Open the process flow →

How each step works

Step 1 — Demand: baseline × seasonal index

Forecastm = baselinem × seasonal indexm

An index of 1.00 is an average period. The reason this step exists separately is that a single annual average — the flat index — is wrong in both directions for anything event-driven: it over-forecasts the quiet periods and badly under-forecasts the peaks. Press “Set flat index” to see the damage on the chart.

Step 2 — MPS: netting and lot sizing

Projected availablem = openingm + productionm − forecastm
If projected available would drop below safety stock:
Net requirement = safety stock + forecastm − openingm
Production order = roundUp( max(net, min batch), batch multiple )

Lot sizing is what turns a smooth requirement into a lumpy production plan. That lumpiness is then inherited by every component below it, which is why material demand is almost always spikier than customer demand — the bullwhip starts here, inside your own plan.

Step 3 — Time-phased MRP

Gross requirementm = productionm × qty per unit × (1 + scrap %)
Projected availablem = previous available + scheduled receipts − gross requirement
Net requirementm = max( 0, −projected available )
Planned orderm = roundUp( net requirement, MOQ )
Release period = m − ceil( (lead time + production lead) ÷ period length )

The offset is the whole point. A component with a 95-day lead time consumed in period 6 has to be released in period 2 — and if that period has already passed, the plan is not achievable no matter how well everything downstream is executed.

Step 4 — Capacity

Material feasibility and capacity feasibility are different questions and a plan has to pass both. A period above 100% load has to be smoothed by building earlier, which moves the material requirement earlier too. This tool flags the overload rather than silently levelling it, because how you smooth is a commercial judgement — build early and carry inventory, or move the promise date.

Step 5 — Cost and working capital

Two numbers matter more than the total. The first is MOQ excess — value bought above what the plan needs, which becomes carried inventory by construction rather than by mistake. The second is the spend profile: the same annual cost is a very different business problem if two-thirds of it commits in one quarter.

Where this model breaks

Vinayak Bhadani — Demand planning & S&OP in Dubai, building supply chain tooling for GCC operators. Every model here is public: the code and commit history are on GitHub.