Corrected calculation mistake
Merge pull request #558 from abhinavc/master

Corrected calculation mistake