# Marketing Calculator: Test Duration Calculator

Centered A/B test duration calculator with three sliders feeding a big day count, a six week calendar grid, and a plain verdict line.

- Page: https://www.shadcn-ui-blocks.com/blocks/marketing-pro/calculators/test-duration-calculator
- Collection: [Marketing](https://www.shadcn-ui-blocks.com/blocks/marketing-pro), Standard tier
- Group: [Calculators](https://www.shadcn-ui-blocks.com/blocks/marketing-pro/calculators)
- Created: 2026-07-10
- Preview image: https://www.shadcn-ui-blocks.com/blocks/marketing-pro/calculators/test-duration-calculator.png

## Install

```bash
npx shadcn@latest add @shadcn-ui-blocks/marketing-pro-calculators-test-duration-calculator
```

Needs an API key from a Pro or Team plan: add `@shadcn-ui-blocks` to the registries in components.json with the key as an `Authorization: Bearer` header. Setup: https://www.shadcn-ui-blocks.com/docs/shadcn-cli. The MCP server installs it without the setup: https://www.shadcn-ui-blocks.com/docs/mcp.

## Depends on

- npm packages: radix-ui
- shadcn/ui components: slider
- Installs to: `@/components/blocks/marketing-pro/calculators/test-duration-calculator`

## About this block

Test Duration Calculator turns three sliders into an honest calendar.
Daily visitors, baseline conversion, and the lift you want to detect
feed a sample size formula, and the result panel prints the days a test
needs, paints them onto a six week grid one square per day, and rounds
up to full weeks so weekday swings cancel out. A plain verdict tells the
visitor whether the wait is normal or the lift is simply too small.

A client component on the ui Slider with plain useState, the math runs
at 95% confidence and 80% power with the formula spelled out in the
footnote. Results round up to whole days and whole weeks because a
duration quoted to the hour reads as false precision on a page like
this.

## When to use

Reach for this block on an experimentation or CRO product page where the
value is running tests properly rather than fast. Calling a winner early
is the most expensive habit in the discipline, and a calendar the
visitor built from their own traffic makes the real wait concrete before
you ask them to trust your tooling with it.

A natural flow around it on a Marketing Pro page:

**Before**

- [Feature](https://www.shadcn-ui-blocks.com/blocks/marketing-pro/feature-sections) sections walking
  through the testing workflow this sizes

**After**

- [Case studies](https://www.shadcn-ui-blocks.com/blocks/marketing-pro/case-studies) showing tests that
  ran full and shipped a real win
- [CTAs](https://www.shadcn-ui-blocks.com/blocks/marketing-pro/ctas) while the honest duration is still
  on screen

## What you can display

One strong use is A/B test duration in days. Other experiment framings:

- **Sample size.** The raw visitors per variant a test needs before days
  ever enter the picture.
- **Multi variant splits.** The run stretched across three or four arms
  instead of a straight A/B.
- **Minimum detectable effect.** Fix the run length and read back the
  smallest lift you could catch.

> Tip: keep the confidence and power in the footnote, a duration with no
> assumptions is a guess wearing a number.

## More in Marketing Calculators

- [Affiliate Earnings Calculator](https://www.shadcn-ui-blocks.com/blocks/marketing-pro/calculators/affiliate-earnings-calculator)
- [Annual Billing Toggle](https://www.shadcn-ui-blocks.com/blocks/marketing-pro/calculators/annual-billing-toggle)
- [Build Vs Buy Calculator](https://www.shadcn-ui-blocks.com/blocks/marketing-pro/calculators/build-vs-buy-calculator)
- [Churn Impact Calculator](https://www.shadcn-ui-blocks.com/blocks/marketing-pro/calculators/churn-impact-calculator)
- [CPL Benchmark Calculator](https://www.shadcn-ui-blocks.com/blocks/marketing-pro/calculators/cpl-benchmark-calculator)
- [Downtime Cost Calculator](https://www.shadcn-ui-blocks.com/blocks/marketing-pro/calculators/downtime-cost-calculator)
- [Email Volume Calculator](https://www.shadcn-ui-blocks.com/blocks/marketing-pro/calculators/email-volume-calculator)
- [Funnel Projection Calculator](https://www.shadcn-ui-blocks.com/blocks/marketing-pro/calculators/funnel-projection-calculator)
- [Ltv Calculator](https://www.shadcn-ui-blocks.com/blocks/marketing-pro/calculators/ltv-calculator)
- [Payback Summary Static](https://www.shadcn-ui-blocks.com/blocks/marketing-pro/calculators/payback-summary-static)
- [Roi Calculator](https://www.shadcn-ui-blocks.com/blocks/marketing-pro/calculators/roi-calculator)
- [Savings Slider](https://www.shadcn-ui-blocks.com/blocks/marketing-pro/calculators/savings-slider)
- [Team Size Estimator](https://www.shadcn-ui-blocks.com/blocks/marketing-pro/calculators/team-size-estimator)
- [Usage Cost Estimator](https://www.shadcn-ui-blocks.com/blocks/marketing-pro/calculators/usage-cost-estimator)
