{
  "schema_version": "1.0",
  "publisher": "tannerd.net",
  "engine_version": "5.6.0",
  "release_date": "2026-09-02",
  "description": "Public deterministic calculator regression cases. A live response passes when all listed expected result fields match.",
  "cases": [
    {
      "id": "seller-profit-basic",
      "tool": "seller-profit",
      "name": "Seller profit: fees and shipping",
      "endpoint": "/api/v1/seller-profit?sale=200&buy=50&fee_pct=13&shipping=20",
      "expected": {
        "selling_fees": 26,
        "profit": 104,
        "roi_percent": 208,
        "profit_margin_percent": 52,
        "break_even_sale_price": 80.46
      }
    },
    {
      "id": "trip-cost-basic",
      "tool": "trip-cost",
      "name": "Trip gas cost",
      "endpoint": "/api/v1/trip-cost?miles=300&mpg=30&gas_price=3.25&tolls=0&people=1",
      "expected": {
        "gallons": 10,
        "fuel_cost": 32.5,
        "total_trip_cost": 32.5,
        "cost_per_mile": 0.1083
      }
    },
    {
      "id": "electricity-basic",
      "tool": "electricity-cost",
      "name": "Electricity cost",
      "endpoint": "/api/v1/electricity-cost?watts=1500&hours_per_day=5&days_per_month=30&rate_per_kwh=.18&quantity=1&duty_cycle_pct=100",
      "expected": {
        "kwh_per_day": 7.5,
        "cost_per_day": 1.35,
        "cost_per_month": 40.5
      }
    },
    {
      "id": "ev-gas-basic",
      "tool": "ev-vs-gas",
      "name": "EV vs gas energy cost",
      "endpoint": "/api/v1/ev-vs-gas?miles_per_month=1000&ev_kwh_per_100_miles=30&electricity_rate=.18&charging_efficiency_pct=90&gas_mpg=30&gas_price=3.5",
      "expected": {
        "ev_cost_per_month": 60,
        "gas_cost_per_month": 116.67,
        "monthly_difference_gas_minus_ev": 56.67
      }
    },
    {
      "id": "marketing-basic",
      "tool": "marketing-metrics",
      "name": "Marketing metrics",
      "endpoint": "/api/v1/marketing-metrics?spend=1500&impressions=100000&clicks=2500&conversions=100&revenue=5000",
      "expected": {
        "cpc": 0.6,
        "cpm": 15,
        "cpa": 15,
        "ctr_percent": 2.5,
        "conversion_rate_percent": 4,
        "roas": 3.3333
      }
    },
    {
      "id": "break-even-basic",
      "tool": "break-even-point",
      "name": "Business break-even point",
      "endpoint": "/api/v1/break-even-point?fixed_costs=5000&price_per_unit=80&variable_cost_per_unit=50",
      "expected": {
        "contribution_per_unit": 30,
        "break_even_units": 167,
        "break_even_revenue": 13360
      }
    },
    {
      "id": "ltv-cac-basic",
      "tool": "customer-ltv-cac",
      "name": "Customer LTV:CAC",
      "endpoint": "/api/v1/customer-ltv-cac?average_order_value=80&purchases_per_year=4&customer_lifespan_years=3&gross_margin_pct=50&cac=75",
      "expected": {
        "lifetime_revenue": 960,
        "gross_profit_ltv": 480,
        "ltv_cac_ratio": 6.4
      }
    },
    {
      "id": "salary-hourly-basic",
      "tool": "salary-to-hourly",
      "name": "Salary to hourly",
      "endpoint": "/api/v1/salary-to-hourly?annual_salary=60000&hours_per_week=40",
      "expected": {
        "hourly_equivalent": 28.8462,
        "weekly_equivalent": 1153.85,
        "monthly_equivalent": 5000
      }
    },
    {
      "id": "percentage-basic",
      "tool": "percentage-change",
      "name": "Percentage change",
      "endpoint": "/api/v1/percentage-change?original=100&new_value=125",
      "expected": {
        "difference": 25,
        "percentage_change": 25,
        "direction": "increase"
      }
    },
    {
      "id": "date-basic",
      "tool": "date-difference",
      "name": "Days between dates",
      "endpoint": "/api/v1/date-difference?start_date=2026-09-01&end_date=2026-09-30",
      "expected": {
        "signed_days": 29,
        "absolute_days": 29,
        "end_is_on_or_after_start": true
      }
    },
    {
      "id": "square-footage-basic",
      "tool": "square-footage",
      "name": "Square footage",
      "endpoint": "/api/v1/square-footage?length=12&width=10",
      "expected": {
        "area_square_feet": 120
      }
    },
    {
      "id": "dim-weight-basic",
      "tool": "dimensional-weight",
      "name": "Dimensional weight",
      "endpoint": "/api/v1/dimensional-weight?length_inches=18&width_inches=12&height_inches=10&dim_divisor=139&actual_weight=8",
      "expected": {
        "package_volume_cubic_inches": 2160,
        "dimensional_weight": 15.5396,
        "higher_comparison_weight": 15.5396
      }
    }
  ]
}
