Calculations related to entangled photon systems and nonlocal correlations