I'm having the same problem. I had to make a schedule for width and height and export it to excel. Then just made a formula W+2(H) for doors and 2(W)+2(H) for windows.
There should be a better solution, but until someone else post it, this might help you.