Estimate the CASNOS contribution
calculate_casnosEstimate the yearly contribution to CASNOS, the Algerian social security fund of the self-employed, for 2026, with the same formula as the UpGrowth calculator: a rate applied to a base that depends on the tax regime, between a floor and a ceiling indexed on the minimum wage (SNMG). Rule applied for Algeria: article 14 of executive decree 15-289 as rewritten by executive decree 26-257 of 15 July 2026 (JO 2026 no. 53, published 23 July 2026, no entry-into-force clause): rate 15 % (7.5 % social insurance, 7.5 % pension) on a base floored at the yearly SNMG (24,000 DA a month, so 288,000 DA, a minimum contribution of 43,200 DA) and capped at twenty times it (5,760,000 DA, a maximum contribution of 864,000 DA); flat-rate tax regimes take 25 % (production and sale of goods) or 35 % (services) of the previous year's tax turnover (decree 24-49), the actual profit regime takes the ordinary result before tax; the first year is based on the yearly SNMG; the auto-entrepreneur may choose 24,000 DA a year. Before 26-257 the floor was the yearly reference wage of 216,000 DA (decrees 22-121 and 20-240, a minimum contribution of 32,400 DA), and the 2026 contribution, due on 1 January, was payable before 1 July 2026: the texts do not say whether 26-257 applies to a 2026 contribution already due (À VÉRIFIER). Since 26-257, with several activities the contribution of each activity cannot be below the minimum; this tool handles one activity at a time. From the third year of activity a floor equal to the average contribution of the same activity in the same wilaya applies: its orders were not found in the Journal officiel, so it is not estimated. Give the regime and, for most regimes, the amount. Returns the yearly, monthly and quarterly contribution with the figures it was computed from, and its limitations: read data.limitations before quoting the result. It is an estimate from public texts, not tax or legal advice. For Tunisia (country TN) it gives the CNSS contribution of the self-employed workers of the non-agricultural sector: regime INDEPENDANT_NON_AGRICOLE and income_class (1 to 10), the quarterly amount the CNSS prints for that class (rate 14.71 %), the yearly amount (four quarters) and the monthly equivalent, in Tunisian dinars, with the period the scale is valid for and the full scale of ten classes; the revenue is not used. Other Tunisian self-employed schemes (agricultural, fishing, craftsmen) are regimes of the same tool, and the Tunisian flat tax is calculate_ifu. Tunisia needs an API key. Morocco (country MA): regime AUTO_ENTREPRENEUR returns the bracket, the quarterly and yearly AMO contribution (supplementary rights, decree 2-21-928) and the pension contribution at 1.57 times it, with the payment dates; regime TRAVAILLEUR_NON_SALARIE returns, for a category (doctor, notary, driver, farmer...), the forfait income multiple set by its decree with its Bulletin officiel, and the rates (AMO 6.37 percent, pension 10 percent of the forfait income, decrees 2-18-623 and 2-18-625); with minimum_wage_hourly it also gives the forfait income and the contributions in dirhams.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lang | No | Language of the labels, notes and attribution text in the answer: fr (French, the default), ar (Arabic) or en (English). | fr |
| tier | No | Morocco only (country MA): the tier of the category when it has several (for example general or specialist for a doctor, owner or non_owner for a driver, class_1 to class_9 for a farmer, simplified for a trader under the simplified net result regime). The answer lists the tiers of the category. | |
| year | No | Year of the rates. Only the 2026 rates are published today, so this can be left out. | |
| regime | Yes | Algeria: FORFAITAIRE_ACHAT_VENTE (flat-rate, goods, 25 %), FORFAITAIRE_PRESTATIONS (flat-rate, services, 35 %), BENEFICE_REEL (actual profit), AUTO_ENTREPRENEUR (24,000 DA option) or PREMIERE_ANNEE (first year). Tunisia (country TN): INDEPENDANT_NON_AGRICOLE, INDEPENDANT_AGRICOLE and ARMATEUR_PECHE_30T (ten classes, need income_class); PETIT_AGRICULTEUR, PETIT_ARMATEUR_PECHE and PECHEUR_INDEPENDANT (flat 7.5 % scheme of law 2002-32); ARTISAN (craftsmen of the same law, 7.5 % of 2/3 of the SMIG over 200 hours a month). Morocco (country MA): AUTO_ENTREPRENEUR (decree 2-21-928) or TRAVAILLEUR_NON_SALARIE (the other non-salaried workers: one decree per category, chosen with category). | |
| country | No | Country of the data, an ISO 3166-1 alpha-2 code in any letter case: DZ for Algeria, the default, TN for Tunisia or MA for Morocco. Only live countries answer: list_countries shows them and their datasets. Any other country, or a dataset the country does not have (for example the activity nomenclature for Morocco), returns country_not_available. Without an API key only DZ answers: TN and MA return key_required. | DZ |
| revenue | No | Yearly amount in Algerian dinars (DZD). For the flat-rate regimes send the tax turnover (chiffre d'affaires fiscal) of the previous financial year; for BENEFICE_REEL send the ordinary result before tax (résultat ordinaire avant impôt) of the financial year closed and declared the previous year. Needed for those three regimes, ignored for AUTO_ENTREPRENEUR and PREMIERE_ANNEE. Ignored for Tunisia (country TN), whose contribution depends on the income class. For Morocco (country MA, regime AUTO_ENTREPRENEUR) it is required: the yearly amount, in Moroccan dirhams (MAD), of the "droits annuels" that select the bracket of the scale of the tax administration. | |
| category | No | Morocco only (country MA), regime TRAVAILLEUR_NON_SALARIE: the category of non-salaried worker, for example doctor, dentist, pharmacist, notary, architect, veterinarian, land_surveyor, judicial_bailiff, taxi_driver, professional_driver, farmer, trader_artisan_accounting, artisan_unaccounted, traditional_fishing_boat_owner, cpu. Leave it out to list the categories, each with its decree and its Bulletin officiel. | |
| net_profit | No | Morocco only (country MA), category trader_artisan_accounting under the actual net result regime: the annual net profit in dirhams, which picks the tier (up to 100,000 dirhams or above). | |
| week_hours | No | Tunisia only (country TN): the weekly working-time regime whose SMIG of décret 2026-67 the craftsmen's contribution uses when smig_monthly_tnd is left out: 48 (554.736 dinars a month, the default) or 40 (470.251). The CNSS page of the craftsmen uses the 48 hour regime, so leave it at 48. | |
| annual_hours | No | Morocco only (country MA): the normal yearly working time in hours used with minimum_wage_hourly; 2,288 (article 184 of the Labour Code, not read in the decrees) when left out. | |
| income_class | No | Tunisia only (country TN): the income class of the insured person in the CNSS scale of the self-employed, from 1 (the lowest base) to 10. Required with the regime INDEPENDANT_NON_AGRICOLE; the answer lists the ten classes. Ignored for Algeria. | |
| seniority_years | No | Morocco only (country MA): the seniority in years, which picks the tier of the categories whose forfait income depends on it (dentist, veterinarian, land_surveyor, architect). Complete years count. | |
| smig_monthly_tnd | No | Tunisia only (country TN): the monthly guaranteed minimum wage (SMIG) in dinars, for the craftsmen of the law no. 2002-32 (regime ARTISAN of calculate_casnos, activity crafts of calculate_ifu): their contribution is 7.5 % of two thirds of its hourly value (monthly amount divided by 208 hours at 48 hours a week) over 200 hours a month. Leave it out to use the SMIG of décret 2026-67 (554.736 dinars, 48 hour week; see week_hours). | |
| minimum_wage_hourly | No | Morocco only (country MA), regime TRAVAILLEUR_NON_SALARIE: the legal hourly minimum wage of non-agricultural activities in dirhams, which the decrees do not state. With it the answer gives the forfait income in dirhams (multiplier times that wage times the yearly hours) and the AMO and pension contributions on it. |