HOTT - fixed wrong operation order

Multiply first to prevent rounding error.
Merge pull request #181 from ledvinap/fix-hott

HOTT - fixed wrong operation order