Text this: The calculus of friendship