Guys, This is really simple, but I just want to make sure my math is correct here:
Its converting a number of seconds into hours and minutes. Here is the function
function timeCalc($seconds)
{
$min = round(($seconds / 60));
$hour = round(($min / 60));
$nmin = round(($min % 60));
$dtime = $hour . " hours and " . $nmin . " minutes";
return $dtime;
}