{
  "spec": "fio",
  "spec_version": "0.3.0",
  "manifest": {
    "id": "sba-7a-guaranty-fee-2026",
    "name": "SBA 7(a) Guaranty Fee Calculator (FY 2026)",
    "description": "Computes FY 2026 SBA 7(a) loan guaranty percentages, guaranteed amounts, guaranty rates, and total guaranty fees due.",
    "workbook": {
      "uri": "FY2026_LGPC_Guaranty_Fee_Calculator-no-external-link.xlsx",
      "locale": "en-US",
      "date_system": 1900
    }
  },
  "ports": [
    {
      "id": "express_loan_amount",
      "dir": "in",
      "shape": "scalar",
      "description": "SBA Express loan amount with maturity over 12 months (USD)",
      "location": {
        "a1": "'Gty Fee'!G15"
      },
      "schema": {
        "type": "number"
      },
      "default": 0,
      "constraints": {
        "min": 0,
        "nullable": false
      }
    },
    {
      "id": "express_guaranty_pct",
      "dir": "in",
      "shape": "scalar",
      "description": "SBA Express loan guaranty percentage",
      "location": {
        "a1": "'Gty Fee'!H15"
      },
      "schema": {
        "type": "number"
      },
      "default": 0.5,
      "constraints": {
        "min": 0,
        "max": 1,
        "nullable": false
      }
    },
    {
      "id": "non_express_loan_amount",
      "dir": "in",
      "shape": "scalar",
      "description": "Non-Express 7(a) loan amount with maturity over 12 months (USD)",
      "location": {
        "a1": "'Gty Fee'!G16"
      },
      "schema": {
        "type": "number"
      },
      "default": 0,
      "constraints": {
        "min": 0,
        "nullable": false
      }
    },
    {
      "id": "last_loan_amount_90d",
      "dir": "in",
      "shape": "scalar",
      "description": "Most recent non-veteran 7(a) loan amount approved within the last 90 days (USD)",
      "location": {
        "a1": "'Gty Fee'!G23"
      },
      "schema": {
        "type": "number"
      },
      "default": 0,
      "constraints": {
        "min": 0,
        "nullable": false
      }
    },
    {
      "id": "express_guaranty_amount",
      "dir": "out",
      "shape": "scalar",
      "description": "Guaranteed portion of the SBA Express loan (USD)",
      "location": {
        "a1": "'Gty Fee'!I15"
      },
      "schema": {
        "type": "number"
      }
    },
    {
      "id": "express_guaranty_rate",
      "dir": "out",
      "shape": "scalar",
      "description": "Guaranty fee rate applied to the Express loan (%)",
      "location": {
        "a1": "'Gty Fee'!J15"
      },
      "schema": {
        "type": "number"
      }
    },
    {
      "id": "express_guaranty_fee",
      "dir": "out",
      "shape": "scalar",
      "description": "Guaranty fee for the SBA Express loan (USD)",
      "location": {
        "a1": "'Gty Fee'!K15"
      },
      "schema": {
        "type": "number"
      }
    },
    {
      "id": "non_express_guaranty_pct",
      "dir": "out",
      "shape": "scalar",
      "description": "Guaranty percentage applied to the Non-Express loan (%)",
      "location": {
        "a1": "'Gty Fee'!H16"
      },
      "schema": {
        "type": "number"
      }
    },
    {
      "id": "non_express_guaranty_amount",
      "dir": "out",
      "shape": "scalar",
      "description": "Guaranteed portion of the Non-Express loan (USD)",
      "location": {
        "a1": "'Gty Fee'!I16"
      },
      "schema": {
        "type": "number"
      }
    },
    {
      "id": "non_express_guaranty_rate",
      "dir": "out",
      "shape": "scalar",
      "description": "Guaranty fee rate applied to the Non-Express loan (%)",
      "location": {
        "a1": "'Gty Fee'!J16"
      },
      "schema": {
        "type": "number"
      }
    },
    {
      "id": "non_express_guaranty_fee",
      "dir": "out",
      "shape": "scalar",
      "description": "Guaranty fee for the Non-Express loan (USD)",
      "location": {
        "a1": "'Gty Fee'!K16"
      },
      "schema": {
        "type": "number"
      }
    },
    {
      "id": "fee_for_this_loan_guaranty",
      "dir": "out",
      "shape": "scalar",
      "description": "Guaranty fee due for this new loan guaranty amount (USD)",
      "location": {
        "a1": "'Gty Fee'!K34"
      },
      "schema": {
        "type": "number"
      }
    },
    {
      "id": "additional_fee_existing_loans",
      "dir": "out",
      "shape": "scalar",
      "description": "Additional guaranty fee resulting from existing loans (USD)",
      "location": {
        "a1": "'Gty Fee'!K35"
      },
      "schema": {
        "type": "number"
      }
    },
    {
      "id": "total_fee_due_new_loan",
      "dir": "out",
      "shape": "scalar",
      "description": "Total guaranty fee due for this new loan (USD)",
      "location": {
        "a1": "'Gty Fee'!K36"
      },
      "schema": {
        "type": "number"
      }
    },
    {
      "id": "total_fees_all_loans",
      "dir": "out",
      "shape": "scalar",
      "description": "Total guaranty fees across all loans (USD)",
      "location": {
        "a1": "'Gty Fee'!K39"
      },
      "schema": {
        "type": "number"
      }
    }
  ]
}
