fixed bar calculation