Forgot to return the time index after calculating it