Traffic volume and statistical confidence level determine A/B test length. Test until you have enough data for credible findings.