ThisCalculator

Everyday

AI Coding Rules: Project Files vs Prompts?

Updated · Standard formula, shown below

Average pace 5.00 min/km
Average speed
12.00 km/h
Result
Finish time
50 min
You entered
Distance
10 km
You entered

This article answers whether AI coding rules belong in project files or in prompts: the standard, most maintainable approach is to put them in project files (like AGENTS.md, CLAUDE.md, or .cursorrules), not in every prompt. This keeps rules versioned, shareable, and automatically loaded by the tool, while prompts remain for task-specific instructions.

Formula

The calculator above works out your average pace and speed for a run or ride. You enter the finish time (in minutes) and the distance (in kilometers). It returns your average pace in minutes per kilometer and your average speed in kilometers per hour.

The formulas are:

  • Pace = Time ÷ Distance (minutes per kilometer)
  • Speed = Distance ÷ (Time ÷ 60) (kilometers per hour)

Where:

  • Time (t) – total time in minutes (e.g., 50 min)
  • Distance (d) – total distance in kilometers (e.g., 10 km)
  • Pace – minutes to cover one kilometer
  • Speed – kilometers covered in one hour

Worked Example

Using the default values: time = 50 minutes, distance = 10 km.

  1. Pace = 50 ÷ 10 = 5.00 min/km
  2. Speed = 10 ÷ (50 ÷ 60) = 10 ÷ 0.8333 = 12.00 km/h

The calculator shows the same results: pace 5.00 min/km, speed 12.00 km/h.

What This Calculator Is For

Use this tool when you finish a run, ride, or walk and want to know your average pace or speed. It is also handy for planning: if you know how far you want to go and what pace you want to hold, you can work backward to find the target finish time (just rearrange the formula).

The result is an average – it does not show splits, elevation, or heart rate. It assumes a steady effort over the whole distance.

How to Read the Result

A lower pace number means faster (e.g., 4:30 min/km is faster than 6:00 min/km). Speed is the opposite: higher is faster. Runners often use pace, while cyclists and drivers use speed. The calculator gives both so you can use whichever you prefer.

If you enter time in hours and minutes (e.g., 1:30:00), convert to minutes first – 90 minutes. The calculator expects minutes only.

Common Mistakes and Limits

  • Unit mix-up: Entering time in hours instead of minutes gives a pace that is 60× too fast. Always convert to minutes.
  • Distance unit: This calculator uses kilometers. If your distance is in miles, multiply by 1.60934 to get kilometers, or use a miles-based calculator.
  • Rounding: The result is rounded to two decimals. For pace, that is fine for a quick check; for training logs, you may want seconds (e.g., 5.00 min/km = 5:00).
  • Stops: If you paused your watch, the time includes the pause, so the pace will be slower than your moving pace.

The formula assumes a constant speed. Real-world runs have hills, traffic lights, and fatigue, so your actual split times will vary.

Frequently Asked Questions

How do I convert my pace to seconds per kilometer?

Multiply the decimal part by 60. For example, 5.25 min/km = 5 minutes and 0.25×60 = 15 seconds, so 5:15 per km.

What is a good pace for a beginner?

It depends on age, fitness, and terrain. A common recreational jogging pace is around 6:00–7:00 min/km. Walking is typically 9:00–12:00 min/km. There is no single “good” pace – focus on effort and consistency.

Can I use this for walking?

Yes. The same formula works for any distance and time. Just enter your walking time and distance.

How do I find my pace in miles per hour?

Take the speed in km/h and divide by 1.60934. For example, 12 km/h ÷ 1.60934 = 7.46 mph.

Why does the calculator show two decimals for pace?

Two decimals give a reasonable balance between precision and readability. For training, you often want seconds, so multiply the decimal by 60 as shown above.

What if I run on a treadmill that shows speed in km/h?

You can use the speed output directly. If the treadmill shows mph, convert to km/h by multiplying by 1.60934 before entering the distance, or just use the speed as given and ignore the pace.

Related

Formula used
in t | Finish time | min | 50 | 0
in d | Distance | km | 10 | 0
out pace | Average pace | min/km | t / d | 2
out speed | Average speed | km/h | d / (t / 60) | 2

Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.