Before you start
Find the highest current bid and the lowest current ask. Note which side you would face as a buyer. Read two levels from that side and compare the quoted quantities with your hypothetical order size.
Work through an example
If asks show 2 units at 100 and 3 at 101, a 4-unit market buy may consume 2 at each price if the book stays unchanged. Its average is 100.5 before fees, not the headline 100.
When to stop
The book can change before an order arrives and hidden or canceled liquidity can alter the result. Use the calculation as practice, not as a guaranteed fill.