How long before the end of inflation were observable perturbations produced