calcnook/calcnook.core.islamic.halal_screen
🌙Sharia · AAOIFI standard

Halal Stock Screener

AAOIFI (Accounting and Auditing Organisation for Islamic Financial Institutions) standard Sharia compliance check. Combines business-activity exclusions with three balance-sheet ratios and a haram-revenue cap.

Inputs

Business

Sector match against AAOIFI haram exclusion list.

Balance sheet

$
$

Conventional bank loans, bonds, etc.

$

Cash + conventional bonds + treasury bills.

$

Income

$
$

Revenue from non-compliant activities (interest income, haram products, etc.).

Result

Verdict

Sharia compliant ✓

All AAOIFI checks passed

AAOIFI ratios

RatioValueThreshold
Interest-bearing debt / market cap20.00%33%
Cash + interest securities / market cap15.00%33%
Receivables / market cap30.00%49%
Haram revenue / total revenue0.63%5%
Compliant, but purify 0.63% of returns by donating that proportion to charity (the haram-revenue contribution).

AAOIFI is the most widely-followed Sharia standard for Islamic finance globally. Other standards (e.g. Dow Jones Islamic Market, FTSE Shariah, MSCI Islamic) use slightly different thresholds (e.g. 30% debt vs 33%). Always cross-reference with your scholarly authority of choice.

Powered by the calcnook engine

Same deterministic math runs as a Python package, an MCP server for AI agents, and on this page. No API keys, no network — pure stdlib.

>>> from calcnook.core.islamic.halal_screen import screen
>>> r = screen("technology", 1_000_000_000, 200_000_000, 150_000_000,
...            300_000_000, 800_000_000, 5_000_000)
>>> r.is_compliant
True