Mechanical calculating device