Understanding The Magnetic Field Of A Magnet Bar: A Comprehensive Guide