Trying to track down discrepancy in the two calculations