private function getIndex($searchedHour, $hours)
    {
        foreach ($hours as $index => $hour) {
            if ($hour == $searchedHour) {
                return $index;
            }
        }
    }