Hi! if (!$maxWInText) { // If maxWInText is not set, it's calculated to the 70 % of the max... $maxWInText = round($maxW/100*50); } To me comment and code seem to be out of sync :-) And if I'm not mistake we can do with round($maxW/2). Masi