Time-dependent radiative transfer calculations for supernovae