private boolean checkDkVatId ( final String pvatId ) { final int sum = ( pvatId . charAt ( 2 ) - ' ' ) * 2 + ( pvatId . charAt ( 3 ) - ' ' ) * 7 + ( pvatId . charAt ( 4 ) - ' ' ) * 6 + ( pvatId . charAt ( 5 ) - ' ' ) * 5 + ( pvatId . charAt ( 6 ) - ' ' ) * 4 + ( pvatId . charAt ( 7 ) - ' ' ) * 3 + ( pvatId . charAt ( 8 ) - ' ' ) * 2 + pvatId . charAt ( 9 ) - ' ' ; return sum % MODULO_11 == 0 ; }
check the VAT identification number country version for Denmark .