{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://askcalculators.com/calculator/gestation-calculator/schema.json",
  "title": "Gestation Calculator inputs",
  "description": "Estimate an animal due date or breeding date from a typical gestation period.",
  "type": "object",
  "properties": {
    "animal": {
      "title": "Animal",
      "type": "string",
      "default": "cow",
      "enum": [
        "cow",
        "pig",
        "sheep",
        "goat",
        "horse",
        "chicken",
        "quail",
        "dog",
        "cat",
        "rabbit",
        "guineaPig",
        "hamster",
        "ferret",
        "elephant",
        "custom"
      ],
      "x-optionLabels": {
        "cow": "Cow / cattle",
        "pig": "Pig / swine",
        "sheep": "Sheep",
        "goat": "Goat",
        "horse": "Horse",
        "chicken": "Chicken",
        "quail": "Quail",
        "dog": "Dog",
        "cat": "Cat",
        "rabbit": "Rabbit",
        "guineaPig": "Guinea pig",
        "hamster": "Hamster",
        "ferret": "Ferret",
        "elephant": "Elephant",
        "custom": "Custom"
      }
    },
    "mode": {
      "title": "Calculate",
      "type": "string",
      "default": "due",
      "enum": [
        "due",
        "breeding"
      ],
      "x-optionLabels": {
        "due": "Due date from breeding date",
        "breeding": "Breeding date from due date"
      }
    },
    "date": {
      "title": "Known date",
      "type": "string",
      "default": "2026-09-01",
      "format": "date"
    },
    "customDays": {
      "title": "Custom gestation period (days)",
      "type": "number",
      "default": 150,
      "minimum": 1,
      "maximum": 1000,
      "x-step": 1,
      "multipleOf": 1
    }
  },
  "required": [
    "animal",
    "mode",
    "date",
    "customDays"
  ],
  "additionalProperties": false,
  "x-askcalculators": {
    "version": "1.0.0",
    "calculatorUrl": "https://askcalculators.com/calculator/gestation-calculator/",
    "queryExample": "https://askcalculators.com/calculator/gestation-calculator/?animal=cow&mode=due&date=2026-09-01&customDays=150",
    "migrationStatus": "new",
    "reviewStatus": "pending",
    "pageStatus": "live",
    "workStatus": "pending",
    "formula": {
      "expression": "due date = breeding date + gestation days; breeding date = due date − gestation days"
    },
    "quality": {
      "availability": "live",
      "technicalReviewRecord": "/reviews/gestation-calculator.json",
      "qualifiedReview": "pending",
      "qualifiedReviewer": null,
      "qualifiedReviewDate": null,
      "formulaVersion": "1.0.0",
      "referenceCoverage": "references-pending",
      "releaseTestScope": "Catalog and regression checks are not a professional formula audit; consult release evidence.",
      "historicalMetadataDate": "2026-09-01",
      "historicalMetadataNotice": "The imported date is not evidence of a completed human review."
    },
    "outputs": {
      "resultDate": {
        "title": "Estimated date",
        "type": "string",
        "x-format": "date",
        "format": "date",
        "x-primary": true
      },
      "gestationDays": {
        "title": "Gestation period",
        "type": "number",
        "x-format": "integer",
        "x-suffix": " days"
      },
      "gestationWeeks": {
        "title": "Approximate weeks",
        "type": "number",
        "x-format": "number",
        "x-digits": 2
      }
    }
  }
}
