fix typo in internal calculations
Merge pull request #807 from dimagi/calc-fix

fix typo in internal calculations