Before launching a test, a PM asks: "how long will this take to run?" You're evaluating a pricing-page experiment:
Using the standard pocket formula n_per_arm = 16 * p * (1 - p) / mde**2, compute the required sample size per arm, the total sample size (both arms), and the estimated number of days to run the test.
Return a dict result with keys n_per_arm (int), total_n (int), and days_required (rounded to 1 decimal).
Ready to take your skills to the next level? Enroll in our comprehensive Data Analyst Career Track to master SQL, Python, Excel, and Power BI.
Run your code to see the result here.