Dearest All.
i hv a requirement .. i hv to calculate check digit for Conatiners for Export and Import.
i tried a lot but failed.....
the logic is as follow...
Every container-number needs its own check digit. This check digit is the last figure of the container-number, that behind the -.
Of course, you can calculate this check digit yourself.
First start with the prefix. Then there is the number itself.
This is the simplest part of the calculation. Last but not least the calculation:
with an example: OOLU 708695.
Each letter of the prefix has its own value:
A 10 J 20 S 30
B 12 K 21 T 31
C 13 L 23 U 32
D 14 M 24 V 34
E 15 N 25 W 35
F 16 O 26 X 36
G 17 P 27 Y 37
H 18 Q 28 Z 38
I 19 R 29
Each figure of the number has its own value.
1 1
2 2
3 3
4 4
5 5
6 6
7 7
8 8
9 9
0 0
We know that: Now calculate:
O 26 26 X 1 = 26
O 26 26 X 2 = 52
L 23 23 X 4 = 92
U 32 32 X 8 = 256
7 7 7 X 16 = 112
0 0 0 X 32 = 0
8 8 8 X 64 = 512
6 6 6 X 128 = 768
9 9 9 X 256 = 2304
5 5 5 X 512 = 2560
________________________________________
Total = 6682
Of course we can understand if you don't want to calculate all these check digits by hand.
Therefore we made you a little tool.
Enter the container-number as followed: XXXX123456, just try it.
Container-number:
Check digit:
Calculate the check digit Clear the form
Now divide this total by 11:
6682 / 11 = 607,4545
and take the figures after the comma
and multiply it by 11 to get the check digit.
0,4545 X 11 = 5
The complete container-number is:
OOLU 708695-5
hi ,
O 26 26 X 1 = 26 O 26 26 X 2 = 52 L 23 23 X 4 = 92 U 32 32 X 8 = 256 7 7 7 X 16 = 112 0 0 0 X 32 = 0 8 8 8 X 64 = 512 6 6 6 X 128 = 768 9 9 9 X 256 = 2304 5 5 5 X 512 = 2560 ________________________________________ Total = 6682
will you explain this why you have taken " 26X1 ,26X2 ,23X4 ,32X8 i.e multiplied with 1,2,4,8
Regards
Deepak.
Add a comment