Text this: Calculus meets the birthday problem.