This commit is contained in:
Ivor Barhansky 2022-06-26 21:21:12 +03:00
parent 19407c04fa
commit 6c3ca6b2cb
2 changed files with 1958 additions and 2441 deletions

View File

@ -14,4 +14,13 @@ class Math
{
return min(self::getPercentage($total, $number), 100);
}
/** Number-20% and Number+20% */
public static function get20PercentRange($number)
{
return [
'min' => $number * ((100 - 20) / 100),
'max' => $number * ((100 - 20) / 100)
];
}
}

File diff suppressed because it is too large Load Diff