I want to be able to calculate the length and cutting angles of a diagonal brace. The door has a frame constructed of 5 members top bottom left right and a diagonal brace (see image) I know the width and height of the door and I know the frame timber thickness. Is there a formula for cutting length and angle of cuts