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

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

        return (int) floor($totalSeconds / 3600);
    }