Understanding the Critical Magnetic Field in Superconductors