Planned expenditure is E = C + I + G = a + MPC·Y + I + G. Drag the sliders and find the equilibrium where output meets spending along the 45° line.
At equilibrium, planned expenditure equals actual output, so the unplanned inventory change is zero. Output above Y* builds inventories; output below it runs them down.