Formula for TDC & lift?

at max lift the piston is no where around tdc....the valve to piston clearance needs to be check during the over lap period of the camshaft.....