How the Speed Distance Time Calculator Solves
The engine applies the single relationship distance = speed × time, rearranged for the chosen unknown: speed = distance ÷ time, distance = speed × time, or time = distance ÷ speed. Before solving it converts every input to SI base units — distance to metres (km ×1000, mile ×1609.344, yard ×0.9144, foot ×0.3048, nautical mile ×1852), time to seconds (h ×3600, min ×60), and speed to metres per second (km/h ÷3.6, mph ×1609.344/3600, knot ×1852/3600, ft/s ×0.3048) — then converts the answer back to the requested unit. This lets the user mix units freely (miles with hours, metres with seconds) without manual conversion. All routines are pure functions in a unit-testable engine.
- distance = speed × time, rearranged for speed, distance or time
- All inputs normalised to metres and seconds before solving
- Distance: m, km, mi, ft, yd, nmi · Time: s, min, h
- Speed: m/s, km/h, mph, knots, ft/s — mixed freely
- Pure, unit-testable engine — no DOM, no server
