# HP Forums

Full Version: Distance, Speed, Time
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Distance, Speed, Time Calculator.

Enter Speed and Distance in miles or kilometers as long as the units are the same.
For now when calculating Time for for various lengths of roadway at different speeds, you can jot down the times and use TimeCalc.hpprgm to accumulate the total time.
I will combine the two programs in the near future, for more flexibility.

REVISED AND IMPROVED June 2,2018
Bernard,

I just tried out your program. Is it rounding strangely? For example:

Distance = 500E-3
Speed = 100E0
Then move the box selector down to H and tap OK to get:
H=0E0, M=0E0, S=20E0

But 18 seconds is the expected answer. Here's an online calculator to compare:

(Use the Time Calculator and choose kmh & Kilometers in the popups, type your numbers, then Calculate Time.)

I then tried this in your program on my Prime:

Distance = 1E0
Speed = 100E0
Then move the box selector down to H and tap OK to get:
H=0E0, M=0E0, S=30E0

But the expected answer is 36 seconds.
Reference URL's
• HP Forums: https://www.hpmuseum.org/forum/index.php
• :