calculate_metrics
Compute the standard commercial real estate underwriting metrics from raw figures: NOI, cap rate, DSCR, debt yield, LTV, LTC, operating expense ratio, break-even occupancy and yield on cost. Supply whatever you have — each metric is returned only when its inputs are present, with the formula used. Use this instead of computing CRE ratios yourself.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rate | No | DECIMAL (0.0725 = 7.25%), used to derive debt service | |
| loanAmount | No | ||
| annualRevenue | No | Gross/effective annual revenue | |
| propertyValue | No | ||
| purchasePrice | No | ||
| annualExpenses | No | Annual operating expenses (excl. debt service) | |
| totalProjectCost | No | For LTC and yield-on-cost | |
| amortizationYears | No | ||
| annualDebtService | No | Annual, not monthly | |
| netOperatingIncome | No | Supply directly, or let it derive from revenue - expenses |