Universality in the entropy change for the inverse magnetocaloric effect