Question: how ean 13 is calculated?
Answer: Count digit positions from the left to the right, starting at 1. Sum all the digits in odd positions. ...  Sum all the digits in even positions and multiply the result by 3.