this works on my site
<?php
$schedule = SchedulesData::getScheduleByFlight($pirep->code,$pirep->flightnum);
$fltime = explode(".", $schedule->flighttime);
$minstar = substr($fltime[1],0,1);
$minstarmin = substr($fltime[1],1,2);
$flmin = $minstar * 10;
$flhou = $fltime[0] * 60;
$flminu = $flhou + $flmin + $minstarmin;
$actfltime = explode(".", $pirep->flighttime);
$actminstar = substr($actfltime[1],0,1);
$actminstarmin = substr($actfltime[1],1,2);
$actflmin = $actminstar * 10;
$actflhou = $actfltime[0] * 60;
$actflminu = $actflhou + $actflmin + $actminstarmin;
if(($flminu - 20) > $actflminu) {
echo "Early";
} elseif (($flminu + 15) < $actflminu) {
echo "Delayed";
} else {
echo "On Time"; }
?>