Get interval right