clean template: support negative delays (yes, they do happen every now and then)