The appraisal value in Avalúo Vehicular is not a subjective estimate — it is the result of multiplying a vehicle’s market reference price (Documentation Index
Fetch the complete documentation index at: https://mintlify.com/alber1802/AvaluoVehicular/llms.txt
Use this file to discover all available pages before exploring further.
precio_referencial) by three independent depreciation factors that quantify age, usage, and physical condition. Each factor produces a coefficient between 0 and 1 representing the percentage of value retained in that dimension. The three factors are then combined with a replacement-cost markup and a residual-value floor to produce a final, auditable final_estimacion figure stored in the avaluo table.
Final Value Formula
The complete calculation is performed inAvaluoController::index(). All three factors are computed first, then the final value is assembled:
The final
if guard ensures the appraised value never equals or exceeds the original reference price. If the combination of factors and the 20 % replacement markup would push the result above market value, the markup factor is dropped and only the raw depreciation factors are applied.Factor A — Depreciation by Model Age (depre_modelo)
Factor A penalises a vehicle for calendar age. The older the vehicle, the lower the factor. The rate of decay is brand-specific: premium brands typically carry a lower tasa_k (slower annual depreciation), while economy brands may depreciate faster.
Formula:
tasa_k— annual depreciation rate, stored per brand inmarca_vehiculo.tasa_kvalor_residual— minimum factor floor for that brand, stored inmarca_vehiculo.valor_residual; prevents factor_A from reaching zero no matter how old the vehicle is
tasa_k = 0.08 and valor_residual = 0.20 on a vehicle that is 5 years old:
Factor B — Depreciation by Mileage (depre_kilometraje)
Factor B penalises a vehicle for total distance driven. The formula uses a fixed universal rate of 0.000001 per kilometre (i.e. each 1,000 km reduces the factor by 0.001), with a hard floor of 0.05 so that even extremely high-mileage vehicles retain 5 % of their value under this dimension.
Formula:
Factor C — Depreciation by Inspection (depre_inspeccion)
Factor C is the most complex factor. It is a weighted composite of two sub-scores:
- Tecnica (65 %) — derived from the mechanical/technical systems inspection (
sistemastable) - Fallas (35 %) — derived from the visual fault inspection (
inspecciontable)
Tecnica Sub-Score
Each mechanical system row has avaloracion (its weight in the overall technical assessment) and an estado (a JSON-encoded condition value). The product of each component’s weight and condition state is summed, then subtracted from 1 to give the retained condition factor.
Fallas Sub-Score
For fault inspections, only rows wheretiene = 1 (the fault is present) contribute to the deduction. Their valoracion weights are summed and subtracted from 1.
Combined Factor C
0.90 and faults reduce the fallas score to 0.85:
Factor Reposicion
The replacement cost factor is a fixed constant of1.2 applied to account for the 20 % premium typically required to source and install a comparable replacement vehicle (transport, import duties, registration). It is stored in avaluo.factor_reposicion for auditability.
valorAvaluo computation. The final guard removes it if the result would equal or exceed the reference price — ensuring the replacement markup never inflates the appraisal beyond market value.
Residual Value Floor
No vehicle can be appraised below 10.7 % of its reference price, regardless of age, mileage, or inspection results. This floor protects appraisals of heavily worn or very old vehicles from yielding unrealistically low values.Complete Worked Example
| Parameter | Value |
|---|---|
precio_referencial | $10,000 |
tasa_k (brand) | 0.08 |
valor_residual (brand) | 0.20 |
año_fabricacion | 5 years ago |
kilometraje | 50,000 km |
Tecnica sub-score | 0.90 |
fallas sub-score | 0.85 |