calculate_moroccan_income_tax
Calculate Moroccan income tax (IR) using DGI progressive brackets with deductions for dependents. Returns annual income, taxable income, tax amount, effective and marginal rates, and bracket breakdown.
Instructions
Calculate Moroccan income tax (IR) using DGI progressive brackets with family deductions. Returns: {annual_income_mad, taxable_income, income_tax_mad, effective_rate_pct, marginal_rate_pct, brackets}. See list_bundles for related 'finance-afrique-quebec' calculators.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| annual_income_mad | Yes | Annual gross income in Moroccan Dirhams (MAD) | |
| dependents | No | Number of dependents (360 MAD deduction each, max 6) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | No | Computed result. Object whose fields depend on the tool (e.g. {tax, marginal_rate, brackets} for tax tools, {volume_l, gallons} for volume tools). | |
| formula | No | Human-readable formula or method used (e.g. "I=P·r·t", "Magnus formula"). | |
| source | No | Authoritative source for the rule or formula (e.g. "Article 197 CGI", "NF DTU 21"). | |
| reference_url | No | Link to a calcul2 page documenting the calculation in detail. |