Move fixed calculation out of loop

Authored by kossebau on Jul 13 2016, 1:41 AM.