$tbw = round(($mybw[0] / 1000),1); if ($tbw>=15000) { return $tbw-15000; PHP: This would show how much overage there is.
Try: $tbw = round(($mybw[0] / 1000),1); if ($tbw>=15000) { return $tbw-15000; } else { return $tbw; } PHP: You will need to make sure to add some sort of logic so that you know whether the bandwidth has been exceeded.