Calculation for age difference in dating