When walking by people or girls its quite normal for very quick glances of eye contact. I think that when it is sustained that there is some interest, i guess about anything over like 2 or 3 seconds. Not always the case of course, but I think it's a pretty good rule of thumb.