define interval as a custom variable