Fix error in calculating the percentage change

Fixes #5
Merge pull request #6 from greenkevon/fix_calculation

Fix error in calculating the percentage change