Several time ranges first version