75) {
die("Using " . $parts[0] . "/100M (" . round($perc, 2) . "%)");
} else if ($perc > 50) {
die("Using " . $parts[0] . "/100M (" . round($perc, 2) . "%)");
} else {
die("Using " . $parts[0] . "/100M (" . round($perc, 2) . "%)");
}
} else if ($tier === "5") {
$perc = ($parts2[0] / 250000) * 100;
if ($perc > 75) {
die("Using " . $parts[0] . "/250M (" . round($perc, 2) . "%)");
} else if ($perc > 50) {
die("Using " . $parts[0] . "/250M (" . round($perc, 2) . "%)");
} else {
die("Using " . $parts[0] . "/250M (" . round($perc, 2) . "%)");
}
} else if ($tier === "7") {
$perc = ($parts2[0] / 500000) * 100;
if ($perc > 75) {
die("Using " . $parts[0] . "/500M (" . round($perc, 2) . "%)");
} else if ($perc > 50) {
die("Using " . $parts[0] . "/500M (" . round($perc, 2) . "%)");
} else {
die("Using " . $parts[0] . "/500M (" . round($perc, 2) . "%)");
}
} else {
die("Using " . $parts[0] . "");
}
}
die("Unable to calculate data usage");