using 57240 as a 100% point, you can divide 50140 / 57240 and that gives you
0.87596086652690426275331935709294
the difference between the factory full charge capacity and current full charge capacity is 57240 - 50140 = 7100. if we take 7100 and divive by the factory full charge of 57240 that gives 0.12403913347309573724668064290706
those are where the two numbers come from. the wear level percentage is how much full charge capacity you have lost, and the % reported by batterinfoview is the amount of full charge capacity you have left from the total of the factory designed