Button width calculation