The price cap uses wholesale prices measured over a period of time, rather than the price on any one day. A change in the market may change future price caps.
The price cap observation window that Ofgem uses is approximately 3 months long (around 90 days). The window typically closes about 1 week before the price cap is announced.