Calculate them in the controller and pass the result to be used in the view:
//controller method
$data = array(
'percentage' => 100*$state_0/($state_1+$state_2+$state_3),
'foo' => $foo,
'bar' => $bar,
);
$view = View::make('myview', $data);
In your view you can access $percentage, $foo and $bar variables.