The ideaTheory
Working backwards from the wedding
The wedding is on the 20th. The cake takes two days, so start baking on the 18th. The flour has to arrive before that, so order it on the 15th.
You do not ask "when shall I order flour?" You ask "when is the cake needed?" and then walk backwards through the lead times.
MRP is that walk, done for thousands of components by a computer, and it is the reason a factory can commit to a delivery date at all.