fixed width calculation for progress bar (hopefully)