Time is certainly one factor. According to a study in the Journal of Social and Personal Relationships, it takes an average of 50 hours together to consider someone a casual friend, and 90 hours before you regard them as a good friend.