محاسبهٔ سهمالارث — Calculate inheritance shares
calculate_inheritanceCalculate Iranian inheritance shares (سهمالارث) of the spouse, parents and children under قانون مدنی arts. 861–949 (رد، نقص، the mother's حاجب), in exact fractions that always sum to the estate. Grandchildren and class-2/3 heirs (siblings, grandparents, uncles …) are refused with the governing articles, never estimated — do not compute those yourself.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| son_count | No | Number of sons. | |
| has_father | No | Father alive? | |
| has_mother | No | Mother alive? | |
| has_spouse | No | Surviving spouse? | |
| wife_count | No | Permanent wives of a male deceased, 1–4 (ماده ۹۴۲). | |
| sister_count | No | Full or paternal sisters of the deceased (ماده ۸۹۲ ب). | |
| brother_count | No | Full or paternal brothers of the deceased (ماده ۸۹۲ ب). | |
| sibling_count | No | Deceased's siblings when their sex is unknown (for the mother's حاجب). Prefer brother_count / sister_count. | |
| daughter_count | No | Number of daughters. | |
| deceased_gender | Yes | Gender of the deceased. | |
| total_assets_toman | Yes | Total estate value in Toman. |