All one hundred eight build stories
Saifullah Ahad / Build Story
How to calculate zakat across cash, gold, and business assets
Knowing how to calculate zakat starts with four plain steps: list eligible assets held across a full lunar year, subtract debts due within the year, compare the net balance against the gold or silver nisab threshold, and divide any qualifying wealth by forty.
- 1. Gather assetsCash, gold, silver, stock, and money owed to you
- 2. Deduct short debtOnly bills and debt payments due this year
- 3. Check nisabCompare against 85 g gold or 595 g silver
- 4. Take 1/40 dueOne-fortieth when net wealth meets nisab
The four-step method on paper
You do not need an app to work out annual zakat on paper. Two public guides explain the rules clearly: What is Nisab from the National Zakat Foundation, a UK registered charity, and Summary of Zakah rulings from IslamWeb, run by Qatar's Ministry of Endowments and Islamic Affairs. Note that this page summarizes those public references for arithmetic clarity and is not a religious ruling; ask a qualified scholar about your own household case.
- Track one Islamic lunar year from when wealth reached nisabAnnual wealth zakat follows the Hijri lunar calendar rather than a solar calendar. Instead of tracking a separate anniversary for every paycheck, IslamWeb describes the simpler practice: "The other way is easier; it is to consider the time at which one attains a due Nisab and waits until a lunar year elapses from the very date he got the Nisab." Once that date arrives each lunar year, assess what you hold on that day.
- Total your cash, precious metals, trade goods, and collectible debtsList money in hand and bank accounts, gold and silver holdings, business merchandise meant for resale, and money owed to you that you realistically expect back. For debts owed to you, IslamWeb counts "Debts you have with others in case your debtors are rich and the debts are payable during the same year."
- Subtract only the debts you owe this yearIslamWeb sets out the subtraction rule directly: "The total of all that was previously mentioned minus the debts you owe and expect to pay throughout the same year." If a debt is paid off over many years, subtract only the payments due in the current year, not the whole balance.
- Compare net wealth to nisab and take one-fortiethThe National Zakat Foundation states: "Remember you only pay Zakat if your net assets equal or exceed the Nisab threshold." When net wealth reaches or passes your chosen nisab after one lunar year, the zakat due on money, gold, silver, and trade inventory is one-fortieth (divide net zakatable wealth by 40).
How to calculate zakat on gold and compare both nisab standards
To learn how to calculate zakat on gold in local currency, convert the Prophetic weight threshold using today's local per-gram price of pure gold or silver. The National Zakat Foundation explains why conversion is necessary: "In today's day and age we do not use silver or gold as a monetary exchange so when calculating your Zakat, you need to find out the equivalent of the rates the Prophet (peace be upon him) set but in your local currency."
IslamWeb gives the classic weights directly: "The Nisab of gold is 20 dinars (i.e. approximately 85 grams)." and "The Nisab of silver is 200 dirhams (i.e. approximately 595 grams)." (Some scholars use slightly higher gram equivalents around 87.48 g of gold and 612.36 g of silver.) Because gold and silver traded at a fixed ratio in early Islamic markets while their modern prices drifted far apart, the two thresholds now sit widely separated, and scholars differ on which one applies to mixed wealth and cash.
Why some scholars favor silver
"Although some scholars still maintain that gold should be used regardless, using silver is safer and more beneficial for the recipients of Zakat."National Zakat Foundation, What is Nisab
Why others measure in gold
"Some scholars measure the Nisab only in gold especially these days when silver is very cheap and he who possesses 595 riyals is not rich."IslamWeb, Summary of Zakah rulings (2017-03-30)
Check local scholarly guidance on women's personal gold jewelry as well, where schools differ on whether worn jewelry is exempt or counted alongside bullion.
How to calculate zakat on business inventory, doubtful debts, and crops
Learning how to calculate zakat on business starts by separating goods held for sale from fixed tools or shop fixtures you keep to run the trade. For trade inventory, IslamWeb states: "If a lunar year elapsed, a merchant should assess the commodities he has according to their market value at the very time Zakah became due on him rather than according to their value on the day he bought them." Sirran also offers an At cost price choice, and you should ask a qualified scholar which valuation applies to you.
Doubtful customer debts split along similar lines: one school position excludes debts you do not expect to recover until payment actually arrives, whereas another counts all receivables at face value or estimated recovery. Agricultural harvests follow separate rules from cash and trade stock: IslamWeb notes that "The due Nisab of fruits is five Wasaqs and the Wasaq is sixty Saa's (i.e. three-hundred Saa's or nearly six-hundred and fifty-three or six-hundred and twelve kilograms)." Above crop nisab, rain-fed crops owe one-tenth (divide by 10) and artificially irrigated crops owe one-twentieth (divide by 20) at harvest rather than after a lunar year.
Why paper calculations stall, and what Sirran does
Two separate failures repeat every Ramadan. First, a small business owner adds up cash, gold, unsold stock, and an unpaid customer bill, hears conflicting advice on doubtful debts and gold versus silver nisab, and ends up guessing or rounding without knowing why. Second, a neighbor who truly qualifies for zakat refuses to put their name on a public mosque list because neighbors talk and a single list can follow a family for years.
Saifullah saw both sides of that gap and set the design rules for Sirran: Zakat Calculator, built with AI as an exact rational calculator paired with an optional community confirmation workflow. Inside the app, Sirran never uses floating-point approximations during calculation, keeps scholarly choices visible beside the answer, and never issues a religious verdict.
Using the full calculation built for the screens above (with made-up demo prices, not real market rates: gold at 110,000 per gram giving a 9,350,000 gold nisab, silver at 130 per gram giving a 77,350 silver nisab, and 4,500,000 cash plus 3,600,000 gold plus 4,200,000 business inventory for 12,300,000 total wealth), a worked ledger shows how Sirran's arithmetic rules behave across borderline cases:
| Case | Net wealth rule | Gold vs silver result |
|---|---|---|
| Screen example | 12,300,000 wealth (above both) | 307,500 due under either nisab |
| Doubtful +4,000 | Excluded vs included at full value | 307,500 excluded vs 307,600 full |
| Mid-tier 500,000 | Below gold 9,350,000, above silver 77,350 | 0 on gold nisab vs 12,500 on silver |
| Debts exceed | 200,000 wealth minus 260,000 yearly debt | Clamped to 0 net wealth, 0 due |
| Irrigated crop | 1,005 harvest at 1/20 = 50.25 | 51 due (rounded up once at end) |
Beyond the calculator, Sirran works as a standalone zakat nisab calculator and personal zakat ledger on your phone without signing into any account, and adds an optional community screen when an organizer sets up a circle:
- Inline scholarly choices and exact fractions: Under Business inventory, you pick At current market price or At cost price; under Money owed to you (doubtful), you pick Exclude from calculation, Include based on your assessment, or Include at full value. All intermediate math stays in exact fractions and rounds up to the next whole unit only once at the end if fractional.
- Umm al-Qura lunar-year tracker and portable file export: Your first above-nisab calculation sets My zakat year started using the Umm al-Qura Hijri calendar, filling the home crescent across the lunar year. Under Past calculations, you can reopen saved breakdowns, log entries under What I gave, and use Save my records to a file or Bring my records back with Android's file picker.
- Quiet community confirmation with three vouchers: In Community, members join an organizer-created circle using a six-character code. Recipients can tap Continue anonymously (recipient) while givers and vouchers sign in with email and choose from 40 preset two-word labels (such as Quiet Cedar or Gentle Horizon) rather than typing names. When at least three vouchers register, tapping Ask for help lets a recipient pick three vouchers and a payout preference while sending blinded requests that vouchers sign without being able to match the token later.
- Separate verification server and minimum batching: Once three distinct vouchers confirm, the recipient's phone unblinds and verifies each signature locally, then posts the random token and three signatures to a Cloudflare Worker without any account identifier or authorization header. That server checks all three distinct RSA keys, stores a one-way SHA-256 hash in its spend table to block double spending, queues a separate payout row with no shared token hash, and refuses to process batches smaller than five at 00:00 UTC.
Sirran requests only internet permission, disables Android cloud backup, and includes an in-app Delete my account option for email users that deletes the account and voucher registration while keeping local calculations on the phone. Read full data-handling details on the Sirran data handling page.
Honest limits of Sirran
Sirran is an arithmetic calculator, personal ledger, and cryptographic confirmation prototype. It never issues a religious ruling, never takes or transfers money, and leaves every fiqh choice to the user and a qualified scholar.
- Manual inputs and BDT default in the calculator: You enter local gold and silver per-gram prices and stock values by hand (Sirran does not fetch metal rates or convert cost to resale automatically). The calculator screen defaults to BDT with no in-screen currency picker, does not calculate livestock tables, and taxes agricultural produce without checking a 5-awsaq crop minimum.
- Community payout matching is incomplete on the server: While 3-of-n blind-signature verification, double-spend blocking, and the five-request minimum check run in the deployed server, its midnight alarm currently only shuffles queued payout rows and marks them processed inside its own storage. It does not yet generate envelope codes, pair giver pledges with recipient payouts, post community totals, or deliver payout instructions back to phones, and the home screen summary strip shows static placeholder labels.
- In-memory claim state and organizer-managed circles: An in-progress help request keeps its random token and blinding factors only in session memory (closing the app clears them before submission), communities cannot be created inside the app, and choosing mobile money warns plainly on screen that a phone number identifies a person.
What was not checked
- No live field trial or scholar audit: Unit tests (23 tests run across debug and release), 20 cross-language hash-vector checks, 7 Firestore security-rule checks, and release-build checks on three Android devices (Infinix Note 8, Galaxy Tab S3, and Honor Pad X7) verified the math, 22.6 ms average RSA-2048 signing speed on the Infinix phone, date-shifted Hijri countdowns, account deletion, and server signature rejection. No real mosque collection, family field study, or external audit by an Islamic scholar has been run.
- End-to-end two-phone payout delivery not checked: Because the server job does not yet match pledges to envelope codes or write community receipts, a full two-phone round trip from pledge through collected envelope code was not executed.
- Restart mid-claim and accessibility scaling not checked: Process death while waiting for three voucher confirmations, plus TalkBack screen-reader navigation and doubled system font scaling across every screen, were not verified in the release test notes.