Plane brood box so roof fits?

We got a medium as a second brood box and have read we can plane it so we can use the original FH roof since it’s a bit smaller than the telescopic roof.

Please advise how much and how far down we should trim the box? Thank you.