dating age limit formula in calculus