Skip to main content

Vehicle Depreciation

HostMetrics calculates vehicle depreciation for profitability analysis.

Supported Methods

1. Straight-Line Depreciation

The simplest method — equal depreciation each year.
Example:
  • Purchase price: $35,000
  • Salvage value: $10,000
  • Useful life: 5 years

2. Declining Balance Depreciation

Accelerated method — higher depreciation in early years.
Year 1: 35,000x0.40=35,000 x 0.40 = 14,000 Year 2: (35,00035,000 - 14,000) x 0.40 = 8,400Year3:(8,400 **Year 3:** (21,000 - 8,400)x0.40=8,400) x 0.40 = 5,040 …and so on until salvage value is reached.

3. Mileage-Based Depreciation

Depreciation based on actual miles driven (from trip odometer readings).
Example:
  • Purchase: 35,000,Salvage:35,000, Salvage: 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:

Impact on Profitability

Monthly depreciation is included in the profitability calculation:
This gives a more accurate picture of true profitability by accounting for the vehicle’s declining value.

Key File

src/lib/depreciation.ts — Contains all three depreciation calculation methods.