Convert a fixed usage reading into a saturation percentage and label.

Saturation Marker Report

saturation_marker.js
const used = 78;
const limit = 100;
const percent = Math.round((used * 100) / limit);
let saturation = "clear";

if (percent >= 90) {
    saturation = "saturated";
} else if (percent >= 70) {
    saturation = "warm";
}

console.log(`used=${used} percent=${percent} status=${saturation}`);
saturation marker A saturation marker compares usage with a limit and keeps the computed percentage scalar.