any one knows what are the calculations for a EAN13 barcode, I mean I have a label printer in wich I give the first 12 digits and the printer calculate the 13 digit, but the printer do it one by one and I need to process may codes.

Thanks..