A Tool to Predict Coercivity in Magnetic Materials