Why would you measure to the dotted line at the inside corner of the housing? Doesn't make sense to me. I always treat the long edge as reference.
Measure to the edge of the ideal timber size. Layout for the 1/2" or ??" housing. Proceed from there. Do the same on the receiving timber. Layout the housing depth from reference. That inside corner will be in the same location.