//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); }