As stated above, you can pretty much ignore the base clock speed. The turbo boost speed is what's important. As long as the CPU isn't overheating (hence the need for a good fan), it will dynamically clock up to its turbo boost speeds. The base clock speed is only really relevant to the i3, celeron, and pentium CPUs, which don't get turbo boost.
The i5-8400 in particular is 2.8 GHz with a 10/10/11/11/11/12 turbo boost. The number in the turbo column is the number of 100 MHz increments, for the different number of cores in use. That means it can boost to 3.8 GHz (2.8 + 0.1*10) when using 5-6 cores. To 3.9 GHz (2.8 + 0.1*11) on 2-4 cores. And to 4 GHz when only a single core is being used...