From da8014708460d184be79a643d2ab1aa6e42289b5 Mon Sep 17 00:00:00 2001 From: Jorge Rivera Date: Mon, 16 Nov 2026 23:45:14 +0100 Subject: [PATCH] feat(prototypes): test debt at estimated present value The IMF-World Bank debt thresholds are set on present value, and FDL's 2023 note measures debt "at present value over GDP". IDS publishes face value only, so the data step now estimates present value as face value times (1 - concessional share x mean grant element), with the share from DT.DOD.ALLC.CD over DT.DOD.DPPG.CD and the grant element the mean of DT.GRE.DPPG from 2015 to the base year. The rebuild of 2024 now matches FDL's group for 54 of 58 countries (51 at face value), and 57 of 58 on the debt test alone. The 2025 counts become 7, 20 and 31. --- .../_components/CountryCard.tsx | 2 +- .../_components/DebtThresholds.tsx | 2 +- .../app/debt-thresholds/_data/fixture.json | 28 ++-- .../app/debt-thresholds/_data/inputs.json | 6 +- .../debt-thresholds/_data/pipeline/build.py | 2 + .../_data/pipeline/coverage.py | 2 +- .../app/debt-thresholds/_data/pipeline/run.py | 2 +- .../_data/pipeline/sources/ids_bulk.py | 2 + .../_data/pipeline/valuation.py | 33 +++++ .../debt-thresholds/_data/tests/test_build.py | 9 +- .../_data/tests/test_coverage.py | 1 + .../_data/tests/test_valuation.py | 40 ++++++ .../app/debt-thresholds/_data/thresholds.json | 124 +++++++++++++++++- prototypes/app/debt-thresholds/_data/types.ts | 9 +- .../debt-thresholds/_lib/thresholds.test.mts | 7 +- .../app/debt-thresholds/_lib/thresholds.ts | 8 +- prototypes/app/debt-thresholds/page.mdx | 10 +- 17 files changed, 256 insertions(+), 31 deletions(-) create mode 100644 prototypes/app/debt-thresholds/_data/pipeline/valuation.py create mode 100644 prototypes/app/debt-thresholds/_data/tests/test_valuation.py diff --git a/prototypes/app/debt-thresholds/_components/CountryCard.tsx b/prototypes/app/debt-thresholds/_components/CountryCard.tsx index efb97f5..38ea57b 100644 --- a/prototypes/app/debt-thresholds/_components/CountryCard.tsx +++ b/prototypes/app/debt-thresholds/_components/CountryCard.tsx @@ -208,7 +208,7 @@ export const CountryCard = ({

- External public debt at face value, % of GDP, {year} + External public debt at present value, % of GDP, {year}

diff --git a/prototypes/app/debt-thresholds/_components/DebtThresholds.tsx b/prototypes/app/debt-thresholds/_components/DebtThresholds.tsx index bc7704c..bd91692 100644 --- a/prototypes/app/debt-thresholds/_components/DebtThresholds.tsx +++ b/prototypes/app/debt-thresholds/_components/DebtThresholds.tsx @@ -345,7 +345,7 @@ export const DebtThresholds = ({

- External public debt at face value against peak debt service, {year} to{' '} + External public debt at present value against peak debt service, {year} to{' '} {lastYear}

diff --git a/prototypes/app/debt-thresholds/_data/fixture.json b/prototypes/app/debt-thresholds/_data/fixture.json index e596a62..1f3ec03 100644 --- a/prototypes/app/debt-thresholds/_data/fixture.json +++ b/prototypes/app/debt-thresholds/_data/fixture.json @@ -10,7 +10,7 @@ 2025 ], "defaultYear": 2025, - "measure": "face", + "measure": "pv", "vintages": { "2024": { "ids": "October 2026", @@ -37,7 +37,8 @@ "bases": { "2024": { "year": 2024, - "debtFace": 33000000000, + "debtFace": 41250000000, + "debtPV": 33000000000, "gdp": 110000000000, "capacity": "medium", "capacitySource": "dsa", @@ -228,7 +229,8 @@ }, "2025": { "year": 2025, - "debtFace": 34000000000, + "debtFace": 42500000000, + "debtPV": 34000000000, "gdp": 115000000000, "capacity": "medium", "capacitySource": "dsa", @@ -426,7 +428,8 @@ "bases": { "2024": { "year": 2024, - "debtFace": 17000000000, + "debtFace": 21250000000, + "debtPV": 17000000000, "gdp": 28000000000, "capacity": "weak", "capacitySource": "dsa", @@ -617,7 +620,8 @@ }, "2025": { "year": 2025, - "debtFace": 17500000000, + "debtFace": 21875000000, + "debtPV": 17500000000, "gdp": 30000000000, "capacity": "weak", "capacitySource": "dsa", @@ -815,7 +819,8 @@ "bases": { "2024": { "year": 2024, - "debtFace": 20000000000, + "debtFace": 25000000000, + "debtPV": 20000000000, "gdp": 31000000000, "capacity": "medium", "capacitySource": "dsa", @@ -1006,7 +1011,8 @@ }, "2025": { "year": 2025, - "debtFace": 22000000000, + "debtFace": 27500000000, + "debtPV": 22000000000, "gdp": 32000000000, "capacity": "medium", "capacitySource": "dsa", @@ -1204,7 +1210,8 @@ "bases": { "2024": { "year": 2024, - "debtFace": 6000000000, + "debtFace": 7500000000, + "debtPV": 6000000000, "gdp": 20000000000, "capacity": "strong", "capacitySource": "assumed", @@ -1395,7 +1402,8 @@ }, "2025": { "year": 2025, - "debtFace": 6200000000, + "debtFace": 7750000000, + "debtPV": 6200000000, "gdp": 21000000000, "capacity": "medium", "capacitySource": "dsa", @@ -1594,6 +1602,7 @@ "2024": { "year": 2024, "debtFace": null, + "debtPV": null, "gdp": null, "capacity": "medium", "capacitySource": "dsa", @@ -1695,6 +1704,7 @@ "2025": { "year": 2025, "debtFace": null, + "debtPV": null, "gdp": null, "capacity": null, "capacitySource": null, diff --git a/prototypes/app/debt-thresholds/_data/inputs.json b/prototypes/app/debt-thresholds/_data/inputs.json index 05d1c45..3142890 100644 --- a/prototypes/app/debt-thresholds/_data/inputs.json +++ b/prototypes/app/debt-thresholds/_data/inputs.json @@ -2,7 +2,7 @@ "provenance": { "sdk": "development-finance==0.2.0", "query": "External public debt (PPG, and IMF credit for service): stock, service, principal and disbursements by creditor group, and GDP, for the 58 countries in FDL's March 2026 note, 2015 to 2031", - "retrieved": "2026-11-16T22:14:58.151Z", + "retrieved": "2026-11-16T22:41:58.439Z", "citation": "World Bank International Debt Statistics (December 2025 and November 2026 releases; November 2026 read through the Development Finance Observatory) and IMF World Economic Outlook (October 2025 and October 2026)", "dfo": [ { @@ -2680,10 +2680,12 @@ "DT.DIS.DPPG.CD", "DT.DIS.MLAT.CD", "DT.DIS.PRVT.CD", + "DT.DOD.ALLC.CD", "DT.DOD.DIMF.CD", "DT.DOD.DPPG.CD", "DT.GPA.OFFT", "DT.GPA.PRVT", + "DT.GRE.DPPG", "DT.INR.OFFT", "DT.INR.PRVT", "DT.INT.DIMF.CD", @@ -2754,10 +2756,12 @@ "DT.DIS.DPPG.CD", "DT.DIS.MLAT.CD", "DT.DIS.PRVT.CD", + "DT.DOD.ALLC.CD", "DT.DOD.DIMF.CD", "DT.DOD.DPPG.CD", "DT.GPA.OFFT", "DT.GPA.PRVT", + "DT.GRE.DPPG", "DT.INR.OFFT", "DT.INR.PRVT", "DT.INT.DIMF.CD", diff --git a/prototypes/app/debt-thresholds/_data/pipeline/build.py b/prototypes/app/debt-thresholds/_data/pipeline/build.py index 39b6dc9..4ba8713 100644 --- a/prototypes/app/debt-thresholds/_data/pipeline/build.py +++ b/prototypes/app/debt-thresholds/_data/pipeline/build.py @@ -6,6 +6,7 @@ from pipeline.creditors import groups, net_flows from pipeline.panel import Panel, Series, amount_of, span, whole from pipeline.project import project_service +from pipeline.valuation import present_value def build_view( @@ -79,6 +80,7 @@ def revenue(year: int, fiscal=fiscal) -> float | None: built[iso3] = { "year": view.base, "debtFace": whole(stock), + "debtPV": whole(present_value(keys, view.base)), "gdp": whole(gdp(view.base)), **capacity_for(capacity.get(iso3), view.base), "years": years, diff --git a/prototypes/app/debt-thresholds/_data/pipeline/coverage.py b/prototypes/app/debt-thresholds/_data/pipeline/coverage.py index b8e9ac4..71c9d49 100644 --- a/prototypes/app/debt-thresholds/_data/pipeline/coverage.py +++ b/prototypes/app/debt-thresholds/_data/pipeline/coverage.py @@ -20,7 +20,7 @@ def coverage_rows(built: Mapping[str, dict], view: View) -> list[dict]: base = built[country.iso3] base_row = next(r for r in base["years"] if r["year"] == view.base) cells = { - "debt stock": base["debtFace"] is not None, + "debt stock": base["debtPV"] is not None, "debt service": base_row["service"] is not None, "GDP": base["gdp"] is not None, "revenue": base_row["revenue"] is not None, diff --git a/prototypes/app/debt-thresholds/_data/pipeline/run.py b/prototypes/app/debt-thresholds/_data/pipeline/run.py index 6fb29d6..9d268f7 100644 --- a/prototypes/app/debt-thresholds/_data/pipeline/run.py +++ b/prototypes/app/debt-thresholds/_data/pipeline/run.py @@ -150,7 +150,7 @@ def build_thresholds(out: Path, *, client: httpx.Client, now: datetime, ids: str data = { "baseYears": [v.base for v in both], "defaultYear": default_year, - "measure": "face", + "measure": "pv", "vintages": { str(v.base): { "ids": v.ids, diff --git a/prototypes/app/debt-thresholds/_data/pipeline/sources/ids_bulk.py b/prototypes/app/debt-thresholds/_data/pipeline/sources/ids_bulk.py index f51685e..ba9b4dc 100644 --- a/prototypes/app/debt-thresholds/_data/pipeline/sources/ids_bulk.py +++ b/prototypes/app/debt-thresholds/_data/pipeline/sources/ids_bulk.py @@ -24,6 +24,8 @@ "ppg_principal": "DT.AMT.DPPG.CD", "ppg_disb": "DT.DIS.DPPG.CD", "ppg_stock": "DT.DOD.DPPG.CD", + "ppg_concessional_stock": "DT.DOD.ALLC.CD", + "ppg_grant_element": "DT.GRE.DPPG", "mlat_service": "DT.TDS.MLAT.CD", "mlat_principal": "DT.AMT.MLAT.CD", "mlat_disb": "DT.DIS.MLAT.CD", diff --git a/prototypes/app/debt-thresholds/_data/pipeline/valuation.py b/prototypes/app/debt-thresholds/_data/pipeline/valuation.py new file mode 100644 index 0000000..6dd7ea7 --- /dev/null +++ b/prototypes/app/debt-thresholds/_data/pipeline/valuation.py @@ -0,0 +1,33 @@ +"""The present value of external public debt, estimated from IDS concessionality.""" + +from collections.abc import Mapping + +from pipeline.config import FIRST_FLOW_YEAR +from pipeline.panel import Series, span + + +def present_value(keys: Mapping[str, Series], base: int) -> float | None: + """Return the base year's PPG debt stock with its concessional part discounted. + + The IMF-World Bank thresholds are set on the present value of debt, which IDS does + not publish. The estimate takes the concessional share of the stock + (`DT.DOD.ALLC.CD` over `DT.DOD.DPPG.CD`, capped at one) and the mean grant element + of new commitments from 2015 to the base year (`DT.GRE.DPPG`, in %), and returns + face value * (1 - share * grant element). Commercial debt stays at face value. + + Returns None when the stock, the concessional stock or every grant element is missing. + """ + face = keys.get("ppg_stock", {}).get(base) + concessional = keys.get("ppg_concessional_stock", {}).get(base) + elements = [ + value + for year, value in keys.get("ppg_grant_element", {}).items() + if year in span(FIRST_FLOW_YEAR, base) + ] + if face is None or concessional is None or not elements: + return None + if face <= 0: + return face + share = min(1.0, concessional / face) + grant_element = sum(elements) / len(elements) / 100 + return face * (1 - share * grant_element) diff --git a/prototypes/app/debt-thresholds/_data/tests/test_build.py b/prototypes/app/debt-thresholds/_data/tests/test_build.py index 0ed4a4c..a23b9c1 100644 --- a/prototypes/app/debt-thresholds/_data/tests/test_build.py +++ b/prototypes/app/debt-thresholds/_data/tests/test_build.py @@ -32,7 +32,12 @@ def test_build_view_shapes_records_and_inputs_for_every_country() -> None: "mlat_service": dict.fromkeys(every_year, 10.0), } panel = {iso3: {key: dict(series) for key, series in flows.items()} for iso3 in ISO3} - panel[ISO3[0]] |= {"ppg_stock": {2024: 100.0}, "imf_stock": {2024: 20.0}} + panel[ISO3[0]] |= { + "ppg_stock": {2024: 100.0}, + "imf_stock": {2024: 20.0}, + "ppg_concessional_stock": {2024: 50.0}, + "ppg_grant_element": {2024: 40.0}, + } built, inputs = build_view( VIEW, panel, @@ -45,6 +50,7 @@ def test_build_view_shapes_records_and_inputs_for_every_country() -> None: assert set(built) == set(inputs) == set(ISO3) first = built[ISO3[0]] assert first["debtFace"] == 100 # PPG only: the debt test leaves out IMF credit + assert first["debtPV"] == 80 # half concessional at a 40% grant element assert inputs[ISO3[0]]["external_debt"] == {"2024": 120.0} # the projection keeps it assert first["gdp"] == 10_000_000_000 assert first["capacitySource"] == "dsa" @@ -55,4 +61,5 @@ def test_build_view_shapes_records_and_inputs_for_every_country() -> None: assert inputs[ISO3[0]]["external_debt"] == {"2024": 120.0} assert inputs[ISO3[0]]["projection_error"] is None assert built[ISO3[1]]["debtFace"] is None # no stock reported + assert built[ISO3[1]]["debtPV"] is None assert built[ISO3[1]]["capacity"] is None diff --git a/prototypes/app/debt-thresholds/_data/tests/test_coverage.py b/prototypes/app/debt-thresholds/_data/tests/test_coverage.py index aa71cc0..d0fd2a8 100644 --- a/prototypes/app/debt-thresholds/_data/tests/test_coverage.py +++ b/prototypes/app/debt-thresholds/_data/tests/test_coverage.py @@ -21,6 +21,7 @@ def built_for(view_base: int, *, gap: str | None = None) -> dict[str, dict]: for country in COUNTRIES: built[country.iso3] = { "debtFace": 1.0, + "debtPV": 1.0, "gdp": None if country.iso3 == gap else 1.0, "capacity": {} if country.iso3 != "BTN" else None, "years": [ diff --git a/prototypes/app/debt-thresholds/_data/tests/test_valuation.py b/prototypes/app/debt-thresholds/_data/tests/test_valuation.py new file mode 100644 index 0000000..cb0dfe5 --- /dev/null +++ b/prototypes/app/debt-thresholds/_data/tests/test_valuation.py @@ -0,0 +1,40 @@ +"""Tests for the present-value estimate of the debt stock.""" + +import pytest + +from pipeline.valuation import present_value + + +def _keys(*, face=1000.0, concessional=600.0, elements=None) -> dict: + return { + "ppg_stock": {2024: face}, + "ppg_concessional_stock": {2024: concessional}, + "ppg_grant_element": elements if elements is not None else {2015: 30.0, 2024: 50.0}, + } + + +def test_present_value_discounts_the_concessional_share_by_the_mean_grant_element() -> None: + # 60% concessional, mean grant element 40%: 1000 * (1 - 0.6 * 0.4) + assert present_value(_keys(), 2024) == pytest.approx(760.0) + + +@pytest.mark.parametrize( + ("keys", "expected"), + [ + # Grant elements outside 2015 to the base year are ignored. + (_keys(elements={2014: 90.0, 2024: 50.0, 2025: 90.0}), 700.0), + # A concessional stock above the PPG stock counts as all of it. + (_keys(concessional=1200.0), 600.0), + # No concessional debt leaves face value. + (_keys(concessional=0.0), 1000.0), + ], +) +def test_present_value_edges(keys: dict, expected: float) -> None: + assert present_value(keys, 2024) == pytest.approx(expected) + + +@pytest.mark.parametrize("missing", ["ppg_stock", "ppg_concessional_stock", "ppg_grant_element"]) +def test_present_value_is_missing_without_its_inputs(missing: str) -> None: + keys = _keys() + keys[missing] = {} + assert present_value(keys, 2024) is None diff --git a/prototypes/app/debt-thresholds/_data/thresholds.json b/prototypes/app/debt-thresholds/_data/thresholds.json index f1ad071..48347f9 100644 --- a/prototypes/app/debt-thresholds/_data/thresholds.json +++ b/prototypes/app/debt-thresholds/_data/thresholds.json @@ -2,7 +2,7 @@ "provenance": { "sdk": "development-finance==0.2.0", "query": "External public debt (PPG, and IMF credit for service): stock, service, principal and disbursements by creditor group, and GDP, for the 58 countries in FDL's March 2026 note, 2015 to 2031", - "retrieved": "2026-11-16T22:14:58.151Z", + "retrieved": "2026-11-16T22:41:58.439Z", "citation": "World Bank International Debt Statistics (December 2025 and November 2026 releases; November 2026 read through the Development Finance Observatory) and IMF World Economic Outlook (October 2025 and October 2026)", "dfo": [ { @@ -2680,10 +2680,12 @@ "DT.DIS.DPPG.CD", "DT.DIS.MLAT.CD", "DT.DIS.PRVT.CD", + "DT.DOD.ALLC.CD", "DT.DOD.DIMF.CD", "DT.DOD.DPPG.CD", "DT.GPA.OFFT", "DT.GPA.PRVT", + "DT.GRE.DPPG", "DT.INR.OFFT", "DT.INR.PRVT", "DT.INT.DIMF.CD", @@ -2754,10 +2756,12 @@ "DT.DIS.DPPG.CD", "DT.DIS.MLAT.CD", "DT.DIS.PRVT.CD", + "DT.DOD.ALLC.CD", "DT.DOD.DIMF.CD", "DT.DOD.DPPG.CD", "DT.GPA.OFFT", "DT.GPA.PRVT", + "DT.GRE.DPPG", "DT.INR.OFFT", "DT.INR.PRVT", "DT.INT.DIMF.CD", @@ -2819,7 +2823,7 @@ 2025 ], "defaultYear": 2025, - "measure": "face", + "measure": "pv", "vintages": { "2024": { "ids": "December 2025", @@ -2843,6 +2847,7 @@ "2024": { "year": 2024, "debtFace": 3322918900, + "debtPV": 3192025982, "gdp": 3098000000, "capacity": "strong", "capacitySource": "dsa", @@ -3034,6 +3039,7 @@ "2025": { "year": 2025, "debtFace": 3284537829, + "debtPV": 3141719214, "gdp": 3509759000, "capacity": "strong", "capacitySource": "dsa", @@ -3232,6 +3238,7 @@ "2024": { "year": 2024, "debtFace": 2794536990, + "debtPV": 2564207802, "gdp": 4291000000, "capacity": "weak", "capacitySource": "dsa", @@ -3423,6 +3430,7 @@ "2025": { "year": 2025, "debtFace": 2864744060, + "debtPV": 2588918255, "gdp": 4489378000, "capacity": "weak", "capacitySource": "dsa", @@ -3621,6 +3629,7 @@ "2024": { "year": 2024, "debtFace": 1310171789, + "debtPV": 1109010787, "gdp": 2186000000, "capacity": "weak", "capacitySource": "dsa", @@ -3812,6 +3821,7 @@ "2025": { "year": 2025, "debtFace": 1400709956, + "debtPV": 1171463249, "gdp": 2655691000, "capacity": "medium", "capacitySource": "dsa", @@ -4010,6 +4020,7 @@ "2024": { "year": 2024, "debtFace": 9150147490, + "debtPV": 6557754999, "gdp": 22745000000, "capacity": "weak", "capacitySource": "dsa", @@ -4201,6 +4212,7 @@ "2025": { "year": 2025, "debtFace": 9295232055, + "debtPV": 6805449863, "gdp": 23603114000, "capacity": "weak", "capacitySource": "dsa", @@ -4399,6 +4411,7 @@ "2024": { "year": 2024, "debtFace": 15473254703, + "debtPV": 15244256753, "gdp": 26326000000, "capacity": "weak", "capacitySource": "dsa", @@ -4590,6 +4603,7 @@ "2025": { "year": 2025, "debtFace": 16017665500, + "debtPV": 15802371849, "gdp": 28709065000, "capacity": "weak", "capacitySource": "dsa", @@ -4788,6 +4802,7 @@ "2024": { "year": 2024, "debtFace": 5334336291, + "debtPV": 5181226764, "gdp": 14774000000, "capacity": "weak", "capacitySource": "dsa", @@ -4979,6 +4994,7 @@ "2025": { "year": 2025, "debtFace": 6386070786, + "debtPV": 6225956026, "gdp": 15425708000, "capacity": "weak", "capacitySource": "dsa", @@ -5177,6 +5193,7 @@ "2024": { "year": 2024, "debtFace": 10024589006, + "debtPV": 9516239826, "gdp": 15908000000, "capacity": "weak", "capacitySource": "dsa", @@ -5368,6 +5385,7 @@ "2025": { "year": 2025, "debtFace": 10116261206, + "debtPV": 9637645054, "gdp": 16906450000, "capacity": "weak", "capacitySource": "dsa", @@ -5566,6 +5584,7 @@ "2024": { "year": 2024, "debtFace": 25093882285, + "debtPV": 23580689074, "gdp": 32816000000, "capacity": "strong", "capacitySource": "dsa", @@ -5757,6 +5776,7 @@ "2025": { "year": 2025, "debtFace": 27694845847, + "debtPV": 25995499055, "gdp": 37076468000, "capacity": "strong", "capacitySource": "dsa", @@ -5919,6 +5939,7 @@ "2024": { "year": 2024, "debtFace": 77581679615, + "debtPV": 64642361129, "gdp": 450461000000, "capacity": "medium", "capacitySource": "dsa", @@ -6110,6 +6131,7 @@ "2025": { "year": 2025, "debtFace": 83456652763, + "debtPV": 70284840493, "gdp": 457903817000, "capacity": "medium", "capacitySource": "dsa", @@ -6308,6 +6330,7 @@ "2024": { "year": 2024, "debtFace": 438777676, + "debtPV": 378008531, "gdp": 2831000000, "capacity": "weak", "capacitySource": "dsa", @@ -6499,6 +6522,7 @@ "2025": { "year": 2025, "debtFace": 464944299, + "debtPV": 411174782, "gdp": 4636131000, "capacity": "weak", "capacitySource": "dsa", @@ -6697,6 +6721,7 @@ "2024": { "year": 2024, "debtFace": 323974704, + "debtPV": 220489307, "gdp": 1442000000, "capacity": "medium", "capacitySource": "dsa", @@ -6888,6 +6913,7 @@ "2025": { "year": 2025, "debtFace": 378360980, + "debtPV": 265151783, "gdp": 1608049000, "capacity": "medium", "capacitySource": "dsa", @@ -7086,6 +7112,7 @@ "2024": { "year": 2024, "debtFace": 106926880075, + "debtPV": 106574777108, "gdp": 383105000000, "capacity": "strong", "capacitySource": "assumed", @@ -7277,6 +7304,7 @@ "2025": { "year": 2025, "debtFace": 114576924655, + "debtPV": 114262788514, "gdp": 364638351000, "capacity": "strong", "capacitySource": "assumed", @@ -7475,6 +7503,7 @@ "2024": { "year": 2024, "debtFace": 33950250176, + "debtPV": 27705267341, "gdp": 142073000000, "capacity": "weak", "capacitySource": "dsa", @@ -7666,6 +7695,7 @@ "2025": { "year": 2025, "debtFace": 36308242412, + "debtPV": 29534720226, "gdp": 126350980000, "capacity": "weak", "capacitySource": "dsa", @@ -7864,6 +7894,7 @@ "2024": { "year": 2024, "debtFace": 1009688795, + "debtPV": 740796282, "gdp": 2355000000, "capacity": "medium", "capacitySource": "dsa", @@ -8055,6 +8086,7 @@ "2025": { "year": 2025, "debtFace": 1047496099, + "debtPV": 773816154, "gdp": 2783092000, "capacity": "strong", "capacitySource": "dsa", @@ -8253,6 +8285,7 @@ "2024": { "year": 2024, "debtFace": 4093001848, + "debtPV": 3546216085, "gdp": 24229000000, "capacity": "weak", "capacitySource": "dsa", @@ -8444,6 +8477,7 @@ "2025": { "year": 2025, "debtFace": 5187614266, + "debtPV": 4564198549, "gdp": 42272473000, "capacity": "weak", "capacitySource": "dsa", @@ -8642,6 +8676,7 @@ "2024": { "year": 2024, "debtFace": 4527618637, + "debtPV": 2976462172, "gdp": 19866000000, "capacity": "medium", "capacitySource": "dsa", @@ -8833,6 +8868,7 @@ "2025": { "year": 2025, "debtFace": 5573465218, + "debtPV": 3570257412, "gdp": 21269730000, "capacity": "medium", "capacitySource": "dsa", @@ -9031,6 +9067,7 @@ "2024": { "year": 2024, "debtFace": 89555608083, + "debtPV": 86781258210, "gdp": 371408000000, "capacity": "strong", "capacitySource": "assumed", @@ -9186,6 +9223,7 @@ "2025": { "year": 2025, "debtFace": 92898820157, + "debtPV": 90136248644, "gdp": 408160033000, "capacity": "strong", "capacitySource": "assumed", @@ -9348,6 +9386,7 @@ "2024": { "year": 2024, "debtFace": 7252683040, + "debtPV": 7149275461, "gdp": 31496000000, "capacity": "weak", "capacitySource": "dsa", @@ -9539,6 +9578,7 @@ "2025": { "year": 2025, "debtFace": 7519318854, + "debtPV": 7410462272, "gdp": 33097745000, "capacity": "weak", "capacitySource": "dsa", @@ -9737,6 +9777,7 @@ "2024": { "year": 2024, "debtFace": 24277203877, + "debtPV": 20142896386, "gdp": 79236000000, "capacity": "medium", "capacitySource": "dsa", @@ -9928,6 +9969,7 @@ "2025": { "year": 2025, "debtFace": 27527515839, + "debtPV": 22901595280, "gdp": 89613915000, "capacity": "medium", "capacitySource": "dsa", @@ -10126,6 +10168,7 @@ "2024": { "year": 2024, "debtFace": 20816257886, + "debtPV": 20359998292, "gdp": 52925000000, "capacity": "strong", "capacitySource": "assumed", @@ -10317,6 +10360,7 @@ "2025": { "year": 2025, "debtFace": 21007274315, + "debtPV": 20492230190, "gdp": 57264299000, "capacity": "strong", "capacitySource": "assumed", @@ -10515,6 +10559,7 @@ "2024": { "year": 2024, "debtFace": 46109545926, + "debtPV": 46112929789, "gdp": 115214000000, "capacity": "strong", "capacitySource": "assumed", @@ -10706,6 +10751,7 @@ "2025": { "year": 2025, "debtFace": 49754911996, + "debtPV": 49773692589, "gdp": 140683116000, "capacity": "strong", "capacitySource": "assumed", @@ -10904,6 +10950,7 @@ "2024": { "year": 2024, "debtFace": 8920517760, + "debtPV": 8157719421, "gdp": 21487000000, "capacity": "strong", "capacitySource": "dsa", @@ -11095,6 +11142,7 @@ "2025": { "year": 2025, "debtFace": 11202076067, + "debtPV": 10366046562, "gdp": 24612884000, "capacity": "strong", "capacitySource": "dsa", @@ -11293,6 +11341,7 @@ "2024": { "year": 2024, "debtFace": 12516539291, + "debtPV": 11448814071, "gdp": 54394000000, "capacity": "weak", "capacitySource": "dsa", @@ -11484,6 +11533,7 @@ "2025": { "year": 2025, "debtFace": 14236033218, + "debtPV": 13020917946, "gdp": 59159168000, "capacity": "medium", "capacitySource": "dsa", @@ -11682,6 +11732,7 @@ "2024": { "year": 2024, "debtFace": 31249010244, + "debtPV": 30410895435, "gdp": 87096000000, "capacity": "medium", "capacitySource": "dsa", @@ -11873,6 +11924,7 @@ "2025": { "year": 2025, "debtFace": 35857696082, + "debtPV": 34910446005, "gdp": 99897427000, "capacity": "strong", "capacitySource": "dsa", @@ -12071,6 +12123,7 @@ "2024": { "year": 2024, "debtFace": 25584060934, + "debtPV": 25241607280, "gdp": 82825000000, "capacity": "medium", "capacitySource": "dsa", @@ -12262,6 +12315,7 @@ "2025": { "year": 2025, "debtFace": 26546486202, + "debtPV": 26066237079, "gdp": 114707564000, "capacity": "medium", "capacitySource": "dsa", @@ -12460,6 +12514,7 @@ "2024": { "year": 2024, "debtFace": 23707731206, + "debtPV": 23460997905, "gdp": 53428000000, "capacity": "strong", "capacitySource": "assumed", @@ -12651,6 +12706,7 @@ "2025": { "year": 2025, "debtFace": 26296050435, + "debtPV": 26015120075, "gdp": 61697074000, "capacity": "strong", "capacitySource": "assumed", @@ -12849,6 +12905,7 @@ "2024": { "year": 2024, "debtFace": 35582544109, + "debtPV": 33244326268, "gdp": 119307000000, "capacity": "medium", "capacitySource": "dsa", @@ -13040,6 +13097,7 @@ "2025": { "year": 2025, "debtFace": 38751061226, + "debtPV": 36524004591, "gdp": 135919027000, "capacity": "medium", "capacitySource": "dsa", @@ -13238,6 +13296,7 @@ "2024": { "year": 2024, "debtFace": 50191529195, + "debtPV": 49179145798, "gdp": 252109000000, "capacity": "strong", "capacitySource": "assumed", @@ -13429,6 +13488,7 @@ "2025": { "year": 2025, "debtFace": 56884060832, + "debtPV": 55956423453, "gdp": 290490877000, "capacity": "strong", "capacitySource": "assumed", @@ -13627,6 +13687,7 @@ "2024": { "year": 2024, "debtFace": 5121248651, + "debtPV": 3302272410, "gdp": 23130000000, "capacity": "medium", "capacitySource": "dsa", @@ -13818,6 +13879,7 @@ "2025": { "year": 2025, "debtFace": 6235463245, + "debtPV": 4067922065, "gdp": 27679505000, "capacity": "medium", "capacitySource": "dsa", @@ -14016,6 +14078,7 @@ "2024": { "year": 2024, "debtFace": 601229942, + "debtPV": 513885480, "gdp": 4827000000, "capacity": "weak", "capacitySource": "dsa", @@ -14207,6 +14270,7 @@ "2025": { "year": 2025, "debtFace": 602661370, + "debtPV": 513392317, "gdp": 6784283000, "capacity": "weak", "capacitySource": "dsa", @@ -14405,6 +14469,7 @@ "2024": { "year": 2024, "debtFace": 11917966029, + "debtPV": 8754096675, "gdp": 46098000000, "capacity": "medium", "capacitySource": "dsa", @@ -14596,6 +14661,7 @@ "2025": { "year": 2025, "debtFace": 12781989661, + "debtPV": 9501761580, "gdp": 50658773000, "capacity": "medium", "capacitySource": "dsa", @@ -14794,6 +14860,7 @@ "2024": { "year": 2024, "debtFace": 2443737367, + "debtPV": 2292128907, "gdp": 19836000000, "capacity": "weak", "capacitySource": "dsa", @@ -14985,6 +15052,7 @@ "2025": { "year": 2025, "debtFace": 2556285436, + "debtPV": 2386417162, "gdp": 21957559000, "capacity": "weak", "capacitySource": "dsa", @@ -15183,6 +15251,7 @@ "2024": { "year": 2024, "debtFace": 7924885122, + "debtPV": 5908093114, "gdp": 74498000000, "capacity": "weak", "capacitySource": "dsa", @@ -15374,6 +15443,7 @@ "2025": { "year": 2025, "debtFace": 9244797466, + "debtPV": 6573077464, "gdp": 92901030000, "capacity": "weak", "capacitySource": "dsa", @@ -15572,6 +15642,7 @@ "2024": { "year": 2024, "debtFace": 866919775, + "debtPV": 857277131, "gdp": 4944000000, "capacity": "strong", "capacitySource": "assumed", @@ -15763,6 +15834,7 @@ "2025": { "year": 2025, "debtFace": 1189572150, + "debtPV": 1180884151, "gdp": 5206788000, "capacity": "strong", "capacitySource": "assumed", @@ -15961,6 +16033,7 @@ "2024": { "year": 2024, "debtFace": 250601500, + "debtPV": 221313677, "gdp": 25285000000, "capacity": "weak", "capacitySource": "dsa", @@ -16152,6 +16225,7 @@ "2025": { "year": 2025, "debtFace": 242067492, + "debtPV": 215565253, "gdp": 32102279000, "capacity": "weak", "capacitySource": "dsa", @@ -16350,6 +16424,7 @@ "2024": { "year": 2024, "debtFace": 238949800499, + "debtPV": 230065395379, "gdp": 3909892000000, "capacity": "strong", "capacitySource": "assumed", @@ -16541,6 +16616,7 @@ "2025": { "year": 2025, "debtFace": 252897692214, + "debtPV": 244023041474, "gdp": 3908963671000, "capacity": "strong", "capacitySource": "assumed", @@ -16739,6 +16815,7 @@ "2024": { "year": 2024, "debtFace": 4216586368, + "debtPV": 3213668991, "gdp": 17491000000, "capacity": "medium", "capacitySource": "dsa", @@ -16930,6 +17007,7 @@ "2025": { "year": 2025, "debtFace": 5140959288, + "debtPV": 4054396539, "gdp": 22625108000, "capacity": "strong", "capacitySource": "dsa", @@ -17128,6 +17206,7 @@ "2024": { "year": 2024, "debtFace": 1016058493, + "debtPV": 850150330, "gdp": 2298000000, "capacity": "medium", "capacitySource": "dsa", @@ -17319,6 +17398,7 @@ "2025": { "year": 2025, "debtFace": 1115501382, + "debtPV": 934771337, "gdp": 2765798000, "capacity": "medium", "capacitySource": "dsa", @@ -17517,6 +17597,7 @@ "2024": { "year": 2024, "debtFace": 1408536038, + "debtPV": 841479816, "gdp": 4778000000, "capacity": "weak", "capacitySource": "dsa", @@ -17708,6 +17789,7 @@ "2025": { "year": 2025, "debtFace": 1633837377, + "debtPV": 972561446, "gdp": 5215934000, "capacity": "weak", "capacitySource": "dsa", @@ -17906,6 +17988,7 @@ "2024": { "year": 2024, "debtFace": 4765753163, + "debtPV": 2843925323, "gdp": 17421000000, "capacity": "medium", "capacitySource": "dsa", @@ -18097,6 +18180,7 @@ "2025": { "year": 2025, "debtFace": 5666535638, + "debtPV": 3320297494, "gdp": 19467730000, "capacity": "medium", "capacitySource": "dsa", @@ -18295,6 +18379,7 @@ "2024": { "year": 2024, "debtFace": 3003754814, + "debtPV": 1773441242, "gdp": 11797000000, "capacity": "weak", "capacitySource": "dsa", @@ -18486,6 +18571,7 @@ "2025": { "year": 2025, "debtFace": 3320034936, + "debtPV": 2039354777, "gdp": 15095519000, "capacity": "weak", "capacitySource": "dsa", @@ -18684,6 +18770,7 @@ "2024": { "year": 2024, "debtFace": 5618291338, + "debtPV": 3769305288, "gdp": 22789000000, "capacity": "medium", "capacitySource": "dsa", @@ -18875,6 +18962,7 @@ "2025": { "year": 2025, "debtFace": 6414175274, + "debtPV": 4308837821, "gdp": 31231985000, "capacity": "medium", "capacitySource": "dsa", @@ -19073,6 +19161,7 @@ "2024": { "year": 2024, "debtFace": 3607484340, + "debtPV": 3231568386, "gdp": 11003000000, "capacity": "medium", "capacitySource": "dsa", @@ -19264,6 +19353,7 @@ "2025": { "year": 2025, "debtFace": 3664943443, + "debtPV": 3262453073, "gdp": 12603024000, "capacity": "medium", "capacitySource": "dsa", @@ -19462,6 +19552,7 @@ "2024": { "year": 2024, "debtFace": 9239552754, + "debtPV": 7135970010, "gdp": 61653000000, "capacity": "medium", "capacitySource": "dsa", @@ -19653,6 +19744,7 @@ "2025": { "year": 2025, "debtFace": 9069288439, + "debtPV": 7111853576, "gdp": 82309346000, "capacity": "medium", "capacitySource": "dsa", @@ -19851,6 +19943,7 @@ "2024": { "year": 2024, "debtFace": 8870826934, + "debtPV": 4987894508, "gdp": 42914000000, "capacity": "strong", "capacitySource": "dsa", @@ -20042,6 +20135,7 @@ "2025": { "year": 2025, "debtFace": 9809952845, + "debtPV": 5496004686, "gdp": 45489810000, "capacity": "strong", "capacitySource": "dsa", @@ -20240,6 +20334,7 @@ "2024": { "year": 2024, "debtFace": 7206043640, + "debtPV": 7031892380, "gdp": 19694000000, "capacity": "strong", "capacitySource": "dsa", @@ -20431,6 +20526,7 @@ "2025": { "year": 2025, "debtFace": 7440590482, + "debtPV": 7292761684, "gdp": 22237176000, "capacity": "strong", "capacitySource": "dsa", @@ -20629,6 +20725,7 @@ "2024": { "year": 2024, "debtFace": 8345599360, + "debtPV": 6060108111, "gdp": 14251000000, "capacity": "strong", "capacitySource": "dsa", @@ -20820,6 +20917,7 @@ "2025": { "year": 2025, "debtFace": 9298460508, + "debtPV": 6842247002, "gdp": 16372776000, "capacity": "strong", "capacitySource": "dsa", @@ -21018,6 +21116,7 @@ "2024": { "year": 2024, "debtFace": 254540060, + "debtPV": 224389042, "gdp": 828000000, "capacity": "weak", "capacitySource": "dsa", @@ -21209,6 +21308,7 @@ "2025": { "year": 2025, "debtFace": 286350748, + "debtPV": 250103266, "gdp": 981111000, "capacity": "weak", "capacitySource": "dsa", @@ -21407,6 +21507,7 @@ "2024": { "year": 2024, "debtFace": 1314090731, + "debtPV": 961908526, "gdp": 7792000000, "capacity": "weak", "capacitySource": "dsa", @@ -21598,6 +21699,7 @@ "2025": { "year": 2025, "debtFace": 1313326907, + "debtPV": 952881926, "gdp": 7711041000, "capacity": "weak", "capacitySource": "dsa", @@ -21796,6 +21898,7 @@ "2024": { "year": 2024, "debtFace": 284840422, + "debtPV": 164680726, "gdp": 1778000000, "capacity": "weak", "capacitySource": "dsa", @@ -21987,6 +22090,7 @@ "2025": { "year": 2025, "debtFace": 381577158, + "debtPV": 215014191, "gdp": 1728408000, "capacity": "weak", "capacitySource": "dsa", @@ -22185,6 +22289,7 @@ "2024": { "year": 2024, "debtFace": 2995608795, + "debtPV": 2685261311, "gdp": 14199000000, "capacity": "strong", "capacitySource": "dsa", @@ -22376,6 +22481,7 @@ "2025": { "year": 2025, "debtFace": 2860343923, + "debtPV": 2574242069, "gdp": 17541694000, "capacity": "strong", "capacitySource": "dsa", @@ -22574,6 +22680,7 @@ "2024": { "year": 2024, "debtFace": 14099703963, + "debtPV": 11521234528, "gdp": 56232000000, "capacity": "medium", "capacitySource": "dsa", @@ -22765,6 +22872,7 @@ "2025": { "year": 2025, "debtFace": 17515733252, + "debtPV": 15754980711, "gdp": 66450627000, "capacity": "medium", "capacitySource": "dsa", @@ -22963,6 +23071,7 @@ "2024": { "year": 2024, "debtFace": 39164853498, + "debtPV": 38332382747, "gdp": 114962000000, "capacity": "strong", "capacitySource": "dsa", @@ -23154,6 +23263,7 @@ "2025": { "year": 2025, "debtFace": 47264391399, + "debtPV": 46237288126, "gdp": 147069036000, "capacity": "strong", "capacitySource": "dsa", @@ -23352,6 +23462,7 @@ "2024": { "year": 2024, "debtFace": 352895057, + "debtPV": 277445402, "gdp": 1090000000, "capacity": "medium", "capacitySource": "dsa", @@ -23543,6 +23654,7 @@ "2025": { "year": 2025, "debtFace": 386909509, + "debtPV": 311586225, "gdp": 1306102000, "capacity": "medium", "capacitySource": "dsa", @@ -23741,6 +23853,7 @@ "2024": { "year": 2024, "debtFace": 38450213371, + "debtPV": 30824159453, "gdp": 459472000000, "capacity": "strong", "capacitySource": "assumed", @@ -23932,6 +24045,7 @@ "2025": { "year": 2025, "debtFace": 36129680299, + "debtPV": 29306986718, "gdp": 494045513000, "capacity": "strong", "capacitySource": "assumed", @@ -24130,6 +24244,7 @@ "2024": { "year": 2024, "debtFace": 9565004967, + "debtPV": 9176293100, "gdp": 37100000000, "capacity": "strong", "capacitySource": "dsa", @@ -24321,6 +24436,7 @@ "2025": { "year": 2025, "debtFace": 9523532973, + "debtPV": 9184266147, "gdp": 39598296000, "capacity": "strong", "capacitySource": "dsa", @@ -24519,6 +24635,7 @@ "2024": { "year": 2024, "debtFace": 45727304918, + "debtPV": 45222971466, "gdp": 160606000000, "capacity": "strong", "capacitySource": "assumed", @@ -24710,6 +24827,7 @@ "2025": { "year": 2025, "debtFace": 55144706869, + "debtPV": 54394347695, "gdp": 183973267000, "capacity": "strong", "capacitySource": "assumed", @@ -24908,6 +25026,7 @@ "2024": { "year": 2024, "debtFace": 80508809537, + "debtPV": 78423207118, "gdp": 461617000000, "capacity": "strong", "capacitySource": "assumed", @@ -25099,6 +25218,7 @@ "2025": { "year": 2025, "debtFace": 89883811212, + "debtPV": 87666170224, "gdp": 487086085000, "capacity": "strong", "capacitySource": "assumed", diff --git a/prototypes/app/debt-thresholds/_data/types.ts b/prototypes/app/debt-thresholds/_data/types.ts index 0607286..6a521a2 100644 --- a/prototypes/app/debt-thresholds/_data/types.ts +++ b/prototypes/app/debt-thresholds/_data/types.ts @@ -43,6 +43,11 @@ export type BaseYear = { year: number; /** External public and publicly guaranteed debt (PPG, without IMF credit) at the end of the base year, face value. */ debtFace: number | null; + /** + * The same debt at estimated present value: the concessional share of the stock + * discounted by the mean grant element of commitments from 2015 to the base year (IDS). + */ + debtPV: number | null; /** GDP in the base year, IMF WEO. */ gdp: number | null; /** Capacity in force for this base year. Null only while a rating is missing (no data). */ @@ -85,8 +90,8 @@ export type ThresholdsData = { baseYears: number[]; /** The year the page opens on, set by the data step's coverage check. */ defaultYear: number; - /** Debt is measured at face value. */ - measure: 'face'; + /** The debt test uses estimated present value (`debtPV`). */ + measure: 'pv'; /** Keyed by base year as a string. */ vintages: Record; /** Countries whose 2024 rebuilt group equals FDL's published group, from the reproduction check. */ diff --git a/prototypes/app/debt-thresholds/_lib/thresholds.test.mts b/prototypes/app/debt-thresholds/_lib/thresholds.test.mts index bc937c5..12fc04c 100644 --- a/prototypes/app/debt-thresholds/_lib/thresholds.test.mts +++ b/prototypes/app/debt-thresholds/_lib/thresholds.test.mts @@ -65,7 +65,8 @@ const synthetic = ( bases: { [baseYear]: { year: baseYear, - debtFace: debt * 10, + debtFace: debt * 12, + debtPV: debt * 10, gdp: 1000, capacity, capacitySource: capacity === null ? null : 'dsa', @@ -88,7 +89,7 @@ test('the fixture is a valid envelope with a group for every case and six projec assert.ok( envelope.provenance.sdk && envelope.provenance.query && envelope.provenance.retrieved, ); - assert.equal(envelope.data.measure, 'face'); + assert.equal(envelope.data.measure, 'pv'); assert.deepEqual( countries.map((c) => classify(c, 2024, effectiveCapacity(c, 2024, 'assessed'))), ['service', 'debt', 'debt', 'below', 'nodata'], @@ -317,7 +318,7 @@ test('toCsv writes one row per country and honours the override', () => { assert.equal(lines.length, 1 + countries.length); assert.equal( lines[0], - 'iso3,name,capacity,capacity source,external public debt at face value % of GDP,debt service % of revenue (base year),peak debt service % of revenue,peak year,group,"FDL group, 2024"', + 'iso3,name,capacity,capacity source,external public debt at present value % of GDP,debt service % of revenue (base year),peak debt service % of revenue,peak year,group,"FDL group, 2024"', ); assert.equal( lines[1], diff --git a/prototypes/app/debt-thresholds/_lib/thresholds.ts b/prototypes/app/debt-thresholds/_lib/thresholds.ts index 498264e..0e88d63 100644 --- a/prototypes/app/debt-thresholds/_lib/thresholds.ts +++ b/prototypes/app/debt-thresholds/_lib/thresholds.ts @@ -50,11 +50,11 @@ export const effectiveCapacity = ( ): Capacity | null => override === 'assessed' ? (toBase(country, year)?.capacity ?? null) : override; -/** External public debt at face value in % of GDP. */ +/** External public debt at estimated present value in % of GDP. */ export const debtRatio = (base: BaseYear): number | null => { - const { debtFace, gdp } = base; + const { debtPV, gdp } = base; - return debtFace === null || !isPositive(gdp) ? null : (debtFace * 100) / gdp; + return debtPV === null || !isPositive(gdp) ? null : (debtPV * 100) / gdp; }; /** External debt service in % of revenue for every year in the base year's series. */ @@ -325,7 +325,7 @@ const CSV_HEADER = [ 'name', 'capacity', 'capacity source', - 'external public debt at face value % of GDP', + 'external public debt at present value % of GDP', 'debt service % of revenue (base year)', 'peak debt service % of revenue', 'peak year', diff --git a/prototypes/app/debt-thresholds/page.mdx b/prototypes/app/debt-thresholds/page.mdx index c9a68af..5066b7a 100644 --- a/prototypes/app/debt-thresholds/page.mdx +++ b/prototypes/app/debt-thresholds/page.mdx @@ -50,7 +50,7 @@ The switch above the chart moves between two views. "FDL, 2024 data" shows the g FDL applies the IMF and World Bank's debt thresholds to 58 low and lower-middle-income countries. It separates countries that owe too much from countries that owe a manageable amount but cannot keep up with repayments. -1. FDL checks external public and publicly guaranteed debt at face value as a share of GDP in the base year. Above 30%, 40%, or 55% for weak, medium, or strong capacity, it puts the country at risk of insolvency. +1. FDL checks external public and publicly guaranteed debt at present value as a share of GDP in the base year. Above 30%, 40%, or 55% for weak, medium, or strong capacity, it puts the country at risk of insolvency. 2. For the remaining countries, it checks external public debt service as a share of government revenue in the base year and each of the six years after it. Above 14%, 18%, or 23% in any of those years, FDL calls the country illiquid. 3. Countries below both thresholds in every year are at lower risk. @@ -58,11 +58,11 @@ Each threshold depends on a country's debt-carrying capacity (weak, medium, or s ## Notes -Based on 2024 data, this tool puts countries in the same group as FDL, including all that FDL finds at risk of insolvency. +Based on 2024 data, this tool puts countries in the same group as FDL. -That means we get different results for seven countries. +That means we get different results for four countries. -- FDL places Lesotho, Rwanda and São Tomé and Príncipe at lower risk and The Gambia among the illiquid. This page places them above the debt threshold. +- FDL places Mozambique at risk of insolvency, here we place it above the debt-service threshold. Its debt sits just below the debt threshold at our estimate of present value. - FDL places Haiti and Sierra Leone at lower risk, here we place them above the debt-service threshold. - FDL places Comoros illiquid, here we put it below both. @@ -71,7 +71,7 @@ The differences are likely methodological. FDL has not published the updated mod ### Other methodological notes - The debt test counts public and publicly guaranteed debt without IMF credit, which matches FDL's 2024 groups most closely. Debt service includes payments to the IMF. -- Debt is at face value. The IMF–World Bank thresholds are set on present value, so face value counts concessional debt at more than its present cost. +- The IMF–World Bank thresholds are set on the present value of debt, which the World Bank does not publish. This page estimates it by discounting the concessional share of each country's debt by the average grant element of its new loans since 2015. - Revenue is IMF WEO general government revenue, which includes grants. The IMF–World Bank thresholds use revenue excluding grants, so ratios are lower for countries that rely on aid. - Debt service after the base year (2026 to 2031 in the DFO view, 2025 to 2030 in FDL's) our projection for this page. Payments already scheduled on existing loans, from the World Bank, plus payments on the new loans each country would need to cover its financing gap, following the method FDL set out in [2023](https://findevlab.org/wp-content/uploads/2023/12/FDL_Debt-distress-update_final20231204.pdf). New loans use the creditor type's average terms from 2015 to 2019. - Like FDL's method, the projection does not subtract disbursements still due on loans already signed. New borrowing, and the debt service on it, may therefore run high, which pushes some countries towards illiquid.