Core Engineering & Methodological Principles
Every calculator on Hasiba, operated under the Zetawala network, adheres strictly to three fundamental principles:
- Statutory Alignment: Verbatim compliance with official laws issued by government ministries in Saudi Arabia, the UAE, Egypt, and GCC nations.
- Real-Time Data Feeds: Direct linkage to verified international bullion indices and central bank foreign exchange rates.
- 100% Client-Side Execution: All numerical calculations run locally in the user’s web browser, safeguarding user privacy with zero data transmission to external servers.
Hijri Date Today & Calendar Converter
Calculations are governed by the official Umm al-Qura Calendar standard authorized by the Kingdom of Saudi Arabia and recognized throughout the Gulf Cooperation Council (GCC).
Technical Implementation:
- Native implementation of the standard
Intl.DateTimeFormatAPI with the explicit astronomical locale identifieren-u-ca-islamic-umalqura. - Normalized to UTC noon (
12:00:00 UTC) to eliminate timezone boundary drift and date shifting across international regions. - Precise determination of lunar month lengths (29 or 30 days) synchronized with the official astronomical sighting almanac of Mecca.
Detailed Age Calculator (Gregorian & Hijri)
The age engine calculates elapsed calendar time between birthdate and current date across solar and lunar astronomical timelines:
Mathematical Arithmetic:
- Gregorian Solar Age: Exact elapsed days, accounting for quadrennial leap years (366 days) and variable Gregorian month durations (28–31 days).
- Hijri Lunar Age: Full conversion of the birth date into Umm al-Qura coordinates. The average lunar year is approximately
354.36days versus365.24solar days, accounting for the ~11-day annual variance. - Next Birthday Countdown: Exact day and weekday countdown until the upcoming Gregorian and Hijri birth anniversaries.
Gold & Silver Prices & Bullion Indices
Raw precious metal spot values are extracted from international commodity exchanges and converted into national currencies via official bullion industry formulas:
Data Feeds & Karat Conversion:
- Global Spot Feed: London Bullion Market Association (LBMA) benchmark feeds and international commodities API (GoldAPI.io).
- Foreign Exchange: Open Exchange Rates API (
open.er-api.com) updated on a recurring 6-hour cron cycle. - Troy Ounce Standard: 1 troy ounce = exactly
31.1034768grams. - Karat Purity Fractions:24K = 100% (1.000) | 22K = 22/24 (0.9167)
21K = 21/24 (0.8750) | 18K = 18/24 (0.7500) - Regional Benchmarks: Includes the Egyptian Gold Pound (8g of 21K) and Gulf Tola (11.6638g of 24K).
Islamic Zakat Calculator & Nisab Thresholds
Formulas are modeled on classical Islamic jurisprudence (Fiqh) and regulatory guidelines published by the Zakat, Tax and Customs Authority (ZATCA) of Saudi Arabia:
Fiqh Rules & Nisab Benchmarks:
- Gold Nisab: 20 Mithqals, standardized to exactly 85 grams of pure 24K gold.
- Silver Nisab: 200 Dirhams, standardized to exactly 595 grams of pure silver.
- Dynamic Nisab Pricing: Calculated in real-time by multiplying current live gram spot prices by the respective gram threshold.
- Zakat Rate: 2.5% (one-fortieth) for a lunar (Hijri) haul, or 2.577% when using the solar (Gregorian) calendar year.
- Deductible Netting: Evaluates cash savings, gold/silver held for wealth preservation, business inventory, and shares, subtracting immediate liabilities.
End of Service Gratuity (UAE & Saudi Arabia)
Distinguishes between UAE and Saudi statutory frameworks, accommodating termination type (employer termination, contract expiry, resignation, or force majeure):
Statutory Legal Provisions:
- Article 84: Half-month salary per year for the first 5 years; full month salary per year thereafter.
- Article 85 (Resignation): Zero entitlement under 2 years of service; 1/3 entitlement for 2–5 years; 2/3 entitlement for 5–10 years; full entitlement for 10+ years.
- Article 87: Full entitlement exceptions for force majeure or female employees terminating within 6 months of marriage or 3 months of childbirth.
- Federal Decree-Law No. 33 of 2021 on the Regulation of Labor Relations and its Executive Regulations.
- 21 days of basic wage for each of the first 5 years of service; 30 days of basic wage for each subsequent year.
- Uniform entitlement under the revised federal decree for fixed-term contracts without resignation reduction penalties.
Pregnancy & Due Date Calculator
Formulas implement clinical obstetric protocols endorsed by the American College of Obstetricians and Gynecologists (ACOG) and the World Health Organization (WHO):
Clinical Protocols (Naegele’s Rule):
- Standard Gestational Period: Estimated at 280 days (40 weeks) from the first day of the last normal menstrual period (LMP).
- Menstrual Cycle Variance: Adjusts for cycles deviating from the 28-day baseline (e.g. a 32-day cycle adds 4 days to estimated gestational age).
- Trimester Segmentation: 1st Trimester (weeks 1–13), 2nd Trimester (weeks 14–27), and 3rd Trimester (weeks 28–40+).
- Clinical Advisory: Calculator outputs are statistical estimates; ultrasound biometry remains the clinical gold standard for confirmation.