Found silly error in percentage calculation. Embarrassing.

Divided value with 100 instead of multiplying it by 100.