protected function calculateHoursLogged($response)
    {
        $totalSeconds = 0;

        foreach ($response['data'] as $day) {
            $totalSeconds += $day['grand_total']['total_seconds'];
        }

        return (int) floor($totalSeconds / 3600);
    }
protected function calculateHoursLogged($response)
    {
        $totalSeconds = 0;

        foreach ($response['data'] as $day) {
            $totalSeconds += $day['grand_total']['total_seconds'];
        }

        return (int) floor($totalSeconds / 3600);
    }
protected function calculateHoursLogged ( $ response ) { $ totalSeconds = 0 ; foreach ( $ response [ 'data' ] as $ day ) { $ totalSeconds += $ day [ 'grand_total' ] [ 'total_seconds' ] ; } return ( int ) floor ( $ totalSeconds / 3600 ) ; }
Loops through response and sums seconds to calculate hours logged.
Converts seconds to hours.

@param $response
@return int
Loops through response and sums seconds to calculate hours logged . Converts seconds to hours .