{
  "schemaVersion": 1,
  "slug": "age-on-other-planets-calculator",
  "category": "party",
  "kind": "implementation",
  "independentValidation": false,
  "implementationHash": "a7183f5369d366cfa8a38bc9fa32b000ea1ee5349ef9f4706a1b42773497d629",
  "provenance": "Generated from the calculation contract used by the published page. Publication is not external validation.",
  "sourceFiles": [
    "data/calculators/age-on-other-planets-calculator.json",
    "src/engine.js"
  ],
  "runtimeSource": "/sources/engine.txt",
  "runtimeHash": "5c888d8898afbdee36267bb9977829e1e2ac568f6677c8ee87469c139864645c",
  "scope": "The compute function records implemented equations, constants, lookup tables and custom rules. Inputs record defaults and allowed values; outputs record precision and units. Defaults are examples, not recommendations. General background references are not evidence for this specific algorithm.",
  "publishedFormula": {
    "formula": "age_p = age_e ÷ P_p",
    "vars": [
      [
        "age_p",
        "age on that planet"
      ],
      [
        "age_e",
        "age on Earth (years)"
      ],
      [
        "P_p",
        "orbital period in Earth years"
      ]
    ],
    "note": "Periods: Mercury 0.2408, Venus 0.6152, Mars 1.8808, Jupiter 11.863, Saturn 29.447, Uranus 84.017, Neptune 164.791."
  },
  "externalEvidence": null,
  "contract": {
    "compute": "const P = { mercury: 0.2408467, venus: 0.61519726, mars: 1.8808158, jupiter: 11.862615, saturn: 29.447498, uranus: 84.016846, neptune: 164.79132 }; return { mercury: age/P.mercury, venus: age/P.venus, mars: age/P.mars, jupiter: age/P.jupiter, saturn: age/P.saturn, uranus: age/P.uranus, neptune: age/P.neptune, daysOnEarth: age*365.2425 };",
    "inputs": [
      {
        "name": "age",
        "type": "number",
        "default": 30,
        "min": 0,
        "max": 150,
        "step": 0.1,
        "slider": true
      }
    ],
    "outputs": [
      {
        "name": "mercury",
        "precision": 2,
        "unit": "years"
      },
      {
        "name": "venus",
        "precision": 2,
        "unit": "years"
      },
      {
        "name": "mars",
        "precision": 2,
        "unit": "years"
      },
      {
        "name": "jupiter",
        "precision": 2,
        "unit": "years"
      },
      {
        "name": "saturn",
        "precision": 2,
        "unit": "years"
      },
      {
        "name": "uranus",
        "precision": 2,
        "unit": "years"
      },
      {
        "name": "neptune",
        "precision": 2,
        "unit": "years"
      },
      {
        "name": "daysOnEarth",
        "precision": 0,
        "unit": "days"
      }
    ],
    "interpret": null
  }
}
