Fixed percent calculation.

Also I rounded the calculated percentage to just 2 digits after the
decimal point. Thanks for sharing the code!