Dear student,
It’s like a rule of thumb that the effective length of a bar magnet is considered to be around 85% of its geometrical length. Physically it signfies that in reality the magnetic poles do not resides at the ends of the bar magnet but a litlle inside them.