Analytical way to model magnetic transients and accommodation