Algorithm that calculates the IBAN key and compares it with the key entered in iban:
- Remove the country code and key
- Put the country code and a key 00 at the end
- convert characters in number (A=10; B=11; ......)
- calculate modulo 97
- remove the result at 98
- you have the key
The modulo function is rewritten for large numbers
check my answer below as a solution