$percentage = 50;
$totalWidth = 350;
$new_width = ($percentage / 100) * $totalWidth;
$price = $price + ($percentage / 100 ) * $price
//ENTER PERCENT AND AMOUNT
//IT WILL RETURN OUTPUT
//INTAKE: 2% OF 10
//OUTPUT : 0.2
function calc_percent($percent, $amt) {
return $output = ($per/100 * $amt);
}