Resilience — mathematical measure of transient behavior