How time capsules can be used to deal with regret.