Calculates lifetime correlation function or Dipole Correlation Function