Vehicle Depreciation
HostMetrics calculates vehicle depreciation for profitability analysis.Supported Methods
1. Straight-Line Depreciation
The simplest method — equal depreciation each year.- Purchase price: $35,000
- Salvage value: $10,000
- Useful life: 5 years
2. Declining Balance Depreciation
Accelerated method — higher depreciation in early years.3. Mileage-Based Depreciation
Depreciation based on actual miles driven (from trip odometer readings).- Purchase: 10,000
- Expected: 150,000 miles
- Per-mile rate: $0.1667/mile
- This month: 2,500 miles → $416.67
Configuration
Each vehicle can have depreciation configured in the Vehicle Detail page:| Field | Description |
|---|---|
| Purchase price | Original vehicle cost |
| Salvage value | Expected value at end of useful life |
| Useful life (years) | For straight-line and declining balance |
| Depreciation method | straight_line, declining_balance, or mileage |
| Purchase date | When the vehicle was acquired |
| Expected lifetime miles | For mileage-based method only |
Impact on Profitability
Monthly depreciation is included in the profitability calculation:Key File
src/lib/depreciation.ts — Contains all three depreciation calculation methods.