Equation for acceptable dating age