{
  "schemaVersion": 1,
  "kind": "workbook",
  "key": "bond-price-yield/2016",
  "title": "Bond Price and Yield Calculator",
  "summary": "Prices a fixed-coupon bond from maturity, coupon rate, yield, par value and payment frequency, or solves the yield that matches a given price.",
  "edition": "2016",
  "html": "https://formualizer.com/catalog/bond-price-yield",
  "parent": {
    "text": "https://formualizer.com/catalog/subjects/finance/llms.txt",
    "json": "https://formualizer.com/catalog/subjects/finance/llms.json"
  },
  "publisher": "National Taiwan University (Prof. Jr-Yan Wang)",
  "publisherPageUrl": "https://homepage.ntu.edu.tw/~jryanwang/courses/Financial%20Computation%20or%20Financial%20Engineering%20(graduate%20level)/FC_graduate.htm",
  "workbookDownload": {
    "url": "https://catalog.formualizer.com/v1/models/bond-price-yield/2016/workbook.xlsx",
    "label": "Download prepared workbook",
    "sha256": "c5591d0a1f219af0b41034892e6350d6f947008b4d931722f1dcd7a2e93b354e",
    "bytes": 8541
  },
  "verificationLevel": "scenario-independent-arithmetic",
  "verificationExplanation": "Changed-input scenarios match an independent calculation.",
  "rightsExplanation": "This is an academic source; this catalog class does not establish a redistribution licence.",
  "limitations": [
    "The yield search covers 0 to 1 (0% to 100%) and stops when the bracket is narrower than 0.00000001; a price outside that range returns an error.",
    "The check-table price assumes exactly 20 coupon payments.",
    "The sheet labels maturity as “in 0.5 years”; the macro multiplies it by payments per year, so the catalog treats it as years.",
    "The workbook calculates price and yield in a VBA macro behind a button. The runtime runs a JavaScript port of that macro, which writes the price or the solved yield to the cell the macro writes.",
    "Price and yield come from Formualizer’s JavaScript port of the workbook’s VBA macro; the macro itself does not run."
  ],
  "releaseBlockers": [],
  "licenseClass": "open-academic",
  "sourceAttribution": "From a fixed-income teaching workbook published by Prof. Jr-Yan Wang, National Taiwan University.",
  "disclaimer": "Catalog calculations, not certification.",
  "removal": "Entries are removed on the publisher’s request.",
  "flows": [
    {
      "id": "price_bond",
      "title": "Price a bond from its yield",
      "description": "Discount the coupons and par value at the given yield.",
      "inputPorts": [
        "time_to_maturity_years",
        "annual_coupon_rate",
        "discount_interest_rate",
        "par_value",
        "payment_frequency"
      ],
      "outputPorts": [
        "bond_price"
      ]
    },
    {
      "id": "price_with_check_table",
      "title": "Price a bond and compare with the check table",
      "description": "Price the bond and also return the coupon per period and the workbook's 20-payment check-table price.",
      "inputPorts": [
        "time_to_maturity_years",
        "annual_coupon_rate",
        "discount_interest_rate",
        "par_value",
        "payment_frequency"
      ],
      "outputPorts": [
        "bond_price",
        "periodic_coupon_payment",
        "check_sheet_price_20_payments"
      ]
    },
    {
      "id": "solve_yield",
      "title": "Solve the yield from a price",
      "description": "Find the yield between 0 and 1 that reproduces the given price.",
      "inputPorts": [
        "time_to_maturity_years",
        "annual_coupon_rate",
        "par_value",
        "payment_frequency",
        "market_price"
      ],
      "outputPorts": [
        "solved_yield"
      ]
    }
  ],
  "example": {
    "id": "par_bond",
    "flow": "price_with_check_table",
    "inputs": {
      "time_to_maturity_years": 10,
      "annual_coupon_rate": 0.06,
      "discount_interest_rate": 0.06,
      "par_value": 1000,
      "payment_frequency": 2
    },
    "expectedOutputs": {
      "bond_price": 1000,
      "periodic_coupon_payment": 30,
      "check_sheet_price_20_payments": 1000
    },
    "inputsJson": "{\"time_to_maturity_years\":10,\"annual_coupon_rate\":0.06,\"discount_interest_rate\":0.06,\"par_value\":1000,\"payment_frequency\":2}",
    "expectedOutputsJson": "{\"bond_price\":1000,\"periodic_coupon_payment\":30,\"check_sheet_price_20_payments\":1000}"
  },
  "ports": {
    "text": "https://formualizer.com/catalog/agents/bond-price-yield/2016/ports/llms.txt",
    "json": "https://formualizer.com/catalog/agents/bond-price-yield/2016/ports/llms.json"
  },
  "service": {
    "openapi": "https://catalog.formualizer.com/v1/models/bond-price-yield/2016/openapi.json",
    "types": "https://catalog.formualizer.com/v1/models/bond-price-yield/2016/types.d.ts",
    "fio": "https://catalog.formualizer.com/v1/models/bond-price-yield/2016/fio.yaml",
    "evaluate": "https://catalog.formualizer.com/v1/models/bond-price-yield/2016/evaluate",
    "mcp": "https://catalog.formualizer.com/v1/mcp"
  }
}
