Minimum age formula for dating