calculate the string width for numerical volume display and time display in