Cam overlap

I believe there is a formula but haven't been able to locate it