Handle intervals inside functions (handle as constants)