rent_affordability
Calculate comfortable monthly rent based on net income using the 33% rule, returning results in MAD and USD.
Instructions
How much monthly rent a given net income comfortably supports. Uses the SAME rule-of-thumb as marocain.investments/finance (rent ≤ 33% of net monthly income) so the answer never disagrees with the website. Give income in MAD (net_monthly_income_mad) or USD (net_monthly_income_usd). Returns the comfortable rent ceiling in MAD and USD.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| net_monthly_income_mad | No | Net monthly income in MAD. | |
| net_monthly_income_usd | No | Net monthly income in USD (converted to MAD ×10; ignored if the MAD field is set). |