{
  "tool": "mpa-public-administration.debt_dynamics",
  "name": "Public debt dynamics (CDU-BUS-MPA-900)",
  "answers": "Where does the debt-to-GDP ratio go over the projection, and what primary balance would hold it steady?",
  "degree": {
    "id": "competency:mpa-public-administration",
    "code": "CDU-BUS-MPA-900",
    "name": "MPA Public Administration",
    "version": "1.0.0"
  },
  "reference": "IMF (2013) Staff Guidance Note for Public Debt Sustainability Analysis: d(t+1) = d(t)(1 + r)/(1 + g) − pb, nominal effective r and g",
  "endpoint": "/faculty/mpa-public-administration/debt_dynamics",
  "feeSt": 1,
  "inputSchema": {
    "type": "object",
    "required": [
      "pan",
      "debtRatio",
      "interestRate",
      "growthRate",
      "primaryBalance",
      "years"
    ],
    "properties": {
      "pan": {
        "type": "string",
        "description": "The student PAN — the degree must be held in one of its five slots",
        "pattern": "^[0-9 ]{16,19}$"
      },
      "debtRatio": {
        "type": "number",
        "description": "Debt ÷ GDP now",
        "minimum": 0,
        "maximum": 10
      },
      "interestRate": {
        "type": "number",
        "description": "Nominal effective interest rate on debt",
        "minimum": -0.1,
        "maximum": 1
      },
      "growthRate": {
        "type": "number",
        "description": "Nominal GDP growth",
        "minimum": -0.5,
        "maximum": 1
      },
      "primaryBalance": {
        "type": "number",
        "description": "Primary balance ÷ GDP (surplus positive)",
        "minimum": -0.5,
        "maximum": 0.5
      },
      "years": {
        "type": "number",
        "description": "Projection horizon in years",
        "minimum": 1,
        "maximum": 50
      }
    },
    "additionalProperties": false
  },
  "outputSchema": {
    "type": "object",
    "required": [
      "projectedDebtRatio",
      "change",
      "stabilisingPrimaryBalance"
    ],
    "properties": {
      "projectedDebtRatio": {
        "type": "number",
        "description": "Debt ÷ GDP at the horizon"
      },
      "change": {
        "type": "number",
        "description": "Projected − current"
      },
      "stabilisingPrimaryBalance": {
        "type": "number",
        "description": "pb* = d·(r − g) ÷ (1 + g)"
      }
    },
    "additionalProperties": false
  },
  "example": {
    "debtRatio": 0.72,
    "interestRate": 0.09,
    "growthRate": 0.07,
    "primaryBalance": -0.01,
    "years": 5
  }
}