improved interval formatting