available_intervals function

Get available intervals