{
  "slug": "percentage-calculator",
  "name": "gizza-ai/percentage-calculator",
  "version": "0.1.0",
  "title": "Percentage Calculator — Percent Of, Percent Change & Share of Total — gizza.ai",
  "description": "Free percentage calculator: what is P% of X, what percent X is of Y, percent increase or decrease, and share of a total. Private, runs in your browser.",
  "tags": [
    "percentage calculator",
    "percent of a number",
    "percent change calculator",
    "percent increase calculator",
    "percent decrease calculator",
    "what percent calculator",
    "percentage of total",
    "percent difference"
  ],
  "category": "math",
  "urls": {
    "page": "https://gizza.ai/tools/percentage-calculator/",
    "markdown": "https://gizza.ai/tools/percentage-calculator/index.md",
    "descriptor": "https://gizza.ai/tools/percentage-calculator/tool.json",
    "deep_link_example": "https://gizza.ai/tools/percentage-calculator/?mode=percent_of&percent=15&base=200&part=30&whole=200&from=200&to=230&value=30&total=200"
  },
  "cli": "gizza tool percentage-calculator \"...\"",
  "tool": {
    "description": "Answer everyday percentage questions from plain numbers: percent of a base, what percent one number is of another, percent change, apply a percent change, or a value's share of a total.",
    "parameters": {
      "additionalProperties": false,
      "properties": {
        "base": {
          "description": "The base amount the percentage acts on (percent_of, apply_change).",
          "type": "number"
        },
        "from": {
          "description": "Starting (old) value, non-zero (change).",
          "type": "number"
        },
        "mode": {
          "description": "Which percentage question to answer.",
          "enum": [
            "percent_of",
            "what_percent",
            "change",
            "apply_change",
            "percent_of_total"
          ],
          "type": "string"
        },
        "part": {
          "description": "The part amount (what_percent).",
          "type": "number"
        },
        "percent": {
          "description": "Percentage value, e.g. 15 for 15% (percent_of, apply_change).",
          "type": "number"
        },
        "to": {
          "description": "Ending (new) value (change).",
          "type": "number"
        },
        "total": {
          "description": "The total, non-zero (percent_of_total).",
          "type": "number"
        },
        "value": {
          "description": "The value whose share of the total you want (percent_of_total).",
          "type": "number"
        },
        "whole": {
          "description": "The whole amount, non-zero (what_percent).",
          "type": "number"
        }
      },
      "required": [
        "mode"
      ],
      "type": "object"
    }
  }
}