A procedure to analyse resonances in scattering and photoionization calculations is discussed. It is theoretically connected to a general relation between the trace of the time-delay matrix and the energy derivative of the eigenphase sum. This procedure is especially useful in analysing resonances with strong background contributions, such as shape resonances lying just above the threshold of a new channel with an overcritical dipole field. In this case the background eigenphase sum diverges towards the threshold, and it can easily change the time delay due to an S-matrix pole into a negative time delay, or time advance. As an application, we analyse results of hyperspherical close-coupling calculations of S-, P-, D-, F-, G-and H-wave resonances in the positronium negative ion Ps − near the Ps(n = 2, 3) thresholds. We find examples of a strong background leading to an overall time advance and the dipole oscillation in the cross section above and near a threshold.