Algorithm Implementation/Checksums/Damm Algorithm

Google Sheets
This code also works with Microsoft Excel if you remove the arrayformula. For locations that use comma as the decimal separator: