for n people, the probability that they all have different B-day is
P1=(365*364*363*362*...*(365-n+1)/365^n
The complimentary of it is the probability of at least two people having same B-day
P2=1-P1
Here are some numbers
n = 10, P2=0.1411
n = 20, P2 = 0.4437
n = 22, P2 =0.5073
n = 30, P2 =0.7305
n = 50, P2= 0.9704
www.ddhw.com
Notice that for 22 people, the odds that at least two people having same B-day is greater than half. There is this famous application to a soccer match. There are 22 players on the field. The chance is better than 50% that at least two players have same B-day. If you count the three referees (25 people altogether), the chance is 0.5982. Q.E.D.