Procent w PHP
<?php
// How much is the x percentage of given value
$percentage = 10;
$totalValue = 500;
// 10% of 500
echo $newValue = ($percentage*$totalValue)/100;
Spotverge