Bar gauge fix for calculating length by percentage