The 1.8% number has been generated exactly how it says in the documentation:
duplicated_lines / lines * 100
The reason why your calculations give you ‘wrong’ number is because 17,120 is a number of Lines of Code which is different metric from Lines. The difference is really well described in the Size section
in the page you linked above.