Fix percentage calculations
Merge pull request #1 from red-coracle/other

Fix percentage calculations