rent_vs_buy
Compare monthly buy vs rent costs for Moroccan property. Enter price and rent to get mortgage payment, rent, and monthly difference.
Instructions
Compare the monthly cost of BUYING a property vs RENTING it. Uses the SAME mortgage engine as marocain.investments/finance (standard annuity payment on the loan after down payment) — principal + interest only, excluding insurance/fees/taxes/maintenance/appreciation. Defaults mirror the site: 30% down, 20-year term, 5.2% rate. Returns the monthly buy payment, the rent, and the monthly difference (buy − rent).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| down_pct | No | Down payment %, default 30 (matches /finance). | |
| price_mad | Yes | Property purchase price in MAD. | |
| term_years | No | Mortgage term in years, default 20. | |
| annual_rate_pct | No | Annual mortgage rate %, default 5.2 (the site's representative rate). | |
| monthly_rent_mad | Yes | Comparable monthly rent in MAD. |