Moving Cost

← All samples

moving-cost.dply
1---
2version: 0.1.0
3precision: 2
4form_title: Moving Cost Calculator
5form_description: Estimate the cost of your move. Enter distance, volume, floors and helpers to get a realistic cost estimate.
6form_inputs: Distance|distance{km}, Volume|volume{m³}, From floor|from_floor{}, To floor|to_floor{}, Helpers|helpers{}
7form_outputs: Base cost|base_cost, Floor surcharge|floor_cost, Helper cost|helper_cost, Total cost|total_cost
8---
9# draftply – Moving Cost Calculator
10# How much will your move cost?
11
12# ── Move parameters ─────────────────────────────────────
13distance = 50 km # moving distance
14volume = 40# furniture volume
15from_floor = 3 # floor to move from (0 = ground floor)
16to_floor = 2 # floor to move to (0 = ground floor)
17helpers = 2 # number of moving helpers
18
19# ── Cost calculation ────────────────────────────────────
20# Base cost per km and m³ (example rates)
21rate_per_km = 2/km
22rate_per_m3 = 10/
23
24base_cost = distance * rate_per_km + volume * rate_per_m3
25
26# Floor surcharge: extra cost for stairs (per floor, per m³)
27floor_diff = abs(from_floor - to_floor)
28floor_rate = 5/
29floor_cost = floor_diff * volume * floor_rate
30
31# Helper cost (per hour, assumed 4 hours per helper)
32helper_rate = 20/h
33helper_hours = 4 h
34helper_cost = helpers * helper_rate * helper_hours
35
36# Total moving cost
37total_cost = base_cost + floor_cost + helper_cost
38
39# ── Additional useful info ────────────────────────────────
40# Cost per m³
41effective_rate = total_cost / volume
42
43# Time estimate (minutes per m³ + floor surcharge)
44time_per_m3 = 10 min/
45floor_time_per_m3 = 5 min
46floor_time_total = floor_time_per_m3 * floor_diff
47total_time_min = (time_per_m3 + floor_time_total) * volume
48
49# ── Results ─────────────────────────────────────────────
50"Distance": distance
51"Volume": volume
52"Floor difference": floor_diff
53"Helpers": helpers
54
55"Base cost (distance + volume)": base_cost
56"Floor surcharge": floor_cost
57"Helper cost": helper_cost
58
59"Total estimated cost": total_cost
60"Cost per m³": effective_rate
61"Estimated moving time": total_time_min / 60 hours
62