Add a user defined function to validate the personal id code checksum.
It is a simple calculation:
- Concatenate the 6-digit date part with the 3-character identificator, skipping the century separator
- Integer divide the sum by 31
- Check the result from the following 0123456789ABCDEFHJKLMNPRSTUVWXY
- If match, valid. Otherwise, invalid
Add a user defined function to validate the personal id code checksum.
It is a simple calculation: