It largely depends on your current age. The older you are, the less the difference between you and your partner matters. Still, in most cases, the upper limit is 20 years of difference. As for the lower limit, the partner must be legal, i.e., be at least 18 years old.