Usually when you hit your edge, your swing is too late.
Usually when you whiff a ball, your swing is too early. This is most common against a floaty slow backspin ball - common when playing someone with a combination racket. Fast block, fast block, then long pips block or slow chop.
To...