be barking up the wrong tree vs miscalculate

be barking up the wrong tree

miscalculate

verb
  • To calculate incorrectly. 

  • To make a gross error in judgement. 

How often have the words be barking up the wrong tree and miscalculate occurred in a corpus of books? (source: Google Ngram Viewer )