Travel time calculator

Total trip time with accel / cruise / decel

Given distance, max speed, and independent accel/decel durations, the tool computes a realistic trapezoid velocity profile: time to reach cruise, time at max speed for the remaining distance, then deceleration. Supports metric and imperial units in one static page.

Algorithm

  1. Acceleration phase — uses your stated ramp-up time to reach max velocity.
  2. Cruise phase — covers remaining distance after subtracting distance consumed during accel/decel triangles (piecewise linear motion).
  3. Deceleration phase — symmetric time budget to return to zero speed.

If the distance is too short to ever reach max speed, the model collapses to a triangle profile—still deterministic from the same inputs.

Architecture

Single HTML file + optional CSS/JS split in repo; no build, no backend. Submodule lives under www/html/hromp.com/distance-time-calc.