The function CheckSumM10() gets an EAN as parameter and returns the checksum of this EAN as String.
CheckSumM10('EAN')
CheckSumM10('123456789123')