Method Deck / health
Running pace and finish time
Computes finish time from distance and pace, and converts distance and pace between kilometers and miles using the exact international mile.
Published for review. The Founder is checking every card himself; anything he strikes comes down the same hour.
Disclaimer: General formula only. Not medical advice. Dosing decisions belong to a licensed clinician and the product's label.
Try it
Inputs
- distance (number, km or mi, required) min 0 : Race or run distance
- distance_unit (string, required) one of: km, mi : Unit of the distance value
- pace_minutes_per_unit (number, minutes per distance_unit, required) min 0 : Pace expressed in minutes per the given distance_unit
Outputs
- finish_time_minutes (minutes): Total finish time in decimal minutes
- finish_time_clock (h:mm:ss): Total finish time formatted as hours:minutes:seconds
- equivalent_distance (the other unit): Distance converted to the other unit
- equivalent_pace (minutes per the other unit): Pace converted to the other unit
Steps
- finish_time_minutes = distance * pace_minutes_per_unit, rounded to 2 decimals.
- finish_time_clock converts finish_time_minutes to hours:minutes:seconds.
- If distance_unit is km: equivalent_distance (mi) = distance / 1.609344; equivalent_pace (min/mi) = pace_minutes_per_unit * 1.609344.
- If distance_unit is mi: equivalent_distance (km) = distance * 1.609344; equivalent_pace (min/km) = pace_minutes_per_unit / 1.609344.
- Round equivalent_distance and equivalent_pace to 2 decimals.
Constants
- mi_to_km = 1.609344 km per mi (source: Exact statute mile to kilometer conversion factor)
Sources
- Exact statute mile to kilometer conversion factor (NIST Handbook 44, Appendix C, 2026-09-30T19:40:00Z) - Defines 1 international mile = 1.609344 km exactly.
Worked example and test vectors
| Name | Inputs | Answer |
| worked example | {"distance":10,"distance_unit":"km","pace_minutes_per_unit":5} | Finish time 0:50:00 (50.00 min); equivalent 6.21 mi at 8.05 min/mi |
| test vector: miles input | {"distance":13.1,"distance_unit":"mi","pace_minutes_per_unit":9} | Finish time 1:57:54 (117.90 min); equivalent 21.08 km at 5.59 min/km |
Published card
- Address:
20f600cb4cdbf78b58c7f9c28fa4ca6e
- Made at:
2026-09-30T22:39:30.722Z
- Method sha256:
61314fb4d9032702afd018f0b9c8e37e11bd4473605e8deed92c5349d98173ab