You mean the difference between cherry housing and keycap right? Of course, depends on your keycap, some being larger than others. Let's assume 18mm though. I'll also presume you're doing this because you want to cut a plate? if so then the key is the distance between hole for switch and keycap edge.
Keycap width = 18mm
Hole width (the size I use for acrylic anyway) = 13.9mm
(18-13.9)/2 = 2.05mm
Obviously, adjust for your own cap width and hole size.
As it happens I 3D printed a plate today with that dimension at the side and it looks correct to me.