delay and sum formula