Formula for jmagick