Set interval in a constant