Compute a saturation percentage from used and capacity values and classify the fill level.

Saturation Marker Report

saturation_marker.php
<?php
$used = ;
$capacity = 100;
$percent = intdiv($used * 100, $capacity);
$satStatus = "clear";

if ($percent >= 90) {
    $satStatus = "saturated";
} elseif ($percent >= 70) {
    $satStatus = "warm";
}

echo "used=" . $used . " percent=" . $percent . " status=" . $satStatus . "\n";
<?php
$used = ;
$capacity = 100;
$percent = intdiv($used * 100, $capacity);
$satStatus = "clear";

if ($percent >= 90) {
    $satStatus = "saturated";
} elseif ($percent >= 70) {
    $satStatus = "warm";
}

echo "used=" . $used . " percent=" . $percent . " status=" . $satStatus . "\n";
<?php
$used = ;
$capacity = 100;
$percent = intdiv($used * 100, $capacity);
$satStatus = "clear";

if ($percent >= 90) {
    $satStatus = "saturated";
} elseif ($percent >= 70) {
    $satStatus = "warm";
}

echo "used=" . $used . " percent=" . $percent . " status=" . $satStatus . "\n";
saturation marker A saturation marker converts raw usage into a percentage label that signals capacity pressure.