In 1642 Blaise Pascal invented the pascaline, the first adding machine using gears, to help his father calculate taxes.
William Seward Burroughs invented a different kind of adding machine in 1885.