convert interval env var to integer