Can someone show me how to find 'X', which is the required clearance for a door/gate with a known thickness but with a variable range of widths (door swing). It's easy using cad software but I need a formula instead.



Please refer to attached pdf file.
Thanks
Richard