I am not getting the totalapps any body help me
<?php $event_time = "9:30 am";
$end_time="11:00 am";
$event_length = 4;
$dtime_1 = new Datetime($event_time);
$dtime_2 = new Datetime($end_time);
$diff = $dtime_1->diff($dtime_2);
$hourone=$diff->format('%H');
$minuteone=$diff->format('%I');
$hourtotalmin=$hourone*60;
$totalmin=$minuteone+$hourtotalmin;
$totalapps=$totalmin/$event_length;
echo $totalapps;
?>