I have a pantry framed. We were going to build shelves but I think it might be easier to buy a cabinet and fit it in here. How do I measure this corner that we framed out for a cabinet. How do I measure a corner cabinet depth. Is it from the middle of the opening or from the side of the opening to the back stud?