Convert interval string to int always