@Burti;
<?php
	
	$tickets = array(
		"accepted" => 500,
		"declined" => 100,
		"support" => 400
	);
	
	$total = 0;
	
	foreach($tickets as $ticket)
	{
		$total += $ticket;
	}
	
	echo "Accepted: " . (100 - ($total - $tickets["accepted"]) * 100 / $total) . "%\n";
	echo "Declined: " . (100 - ($total - $tickets["declined"]) * 100 / $total) . "%\n";
	echo "Support: "  . (100 - ($total - $tickets["support"]) * 100 / $total)  . "%\n";