Miter/corner issue.

Can anyone tell me the best way to miter/cut/chamfer the top angled edge with the sides as well as the bottom edge (with the sides) so that the part flat patterns and the corners match with a slight gap when un-flattened?

SolidworksSheet Metal