Wearing-out of components in a variable environment