home about us contact us

free scripts advanced scripts online tools great books web related tutorials contributed tutorials news archive geek toys!

help forum live chat help

Selected article

RSS feed   enewsbar Live Subscribe    Add to MyYahoo    Add to Google

Other HTMLfixIT articles:

by Don

I regularly have to create target splits for a five kilometer (5K or 5,000 Meter) race. This clip creates even mile splits based upon a target finish time.

; by don at
; with help from the clips list
; at
;get goal time
^!Set %goal_time%=^?[Goal Time (xx:xx)]

;split goal time to minutes/seconds
^!SetListDelimiter :
^!SetArray %time%=^%goal_time%

;convert minutes to seconds
^!Set %time_seconds%=^$Calc((^%time1%*(60))+^%time2%)$

;calculate seconds per mile
^!Set %seconds_per_mile%=^$Calc(^%time_seconds%/3.107)$

;do math on seconds per mile
;to get minutes and seconds
;one mile
^!Set %minutes_per_mile_target%=^$Calc(FLOOR(^%seconds_per_mile%/60))$
^!If ^$StrSize("^%minutes_per_mile_target%")$=1 ^!Set %minutes_per_mile_target%=0^%minutes_per_mile_target%
^!Set %seconds_per_mile_target%=^$Calc(^%seconds_per_mile%-(^%minutes_per_mile_target%*60);1)$
^!If ^$StrSize("^%seconds_per_mile_target%")$=3 ^!Set %seconds_per_mile_target%=0^%seconds_per_mile_target%

;two miles
^!Set %minutes_per_2mile_target%=^$Calc(FLOOR((^%seconds_per_mile%*2)/60))$
^!If ^$StrSize("^%minutes_per_2mile_target%")$=1 ^!Set %minutes_per_2mile_target%=0^%minutes_per_2mile_target%
^!Set %seconds_per_2mile_target%=^$Calc((^%seconds_per_mile%*2)-(^%minutes_per_2mile_target%*60);1)$
^!If ^$StrSize("^%seconds_per_2mile_target%")$=3 ^!Set %seconds_per_2mile_target%=0^%seconds_per_2mile_target%

;three miles
^!Set %minutes_per_3mile_target%=^$Calc(FLOOR((^%seconds_per_mile%*3)/60))$
^!If ^$StrSize("^%minutes_per_3mile_target%")$=1 ^!Set %minutes_per_3mile_target%=0^%minutes_per_3mile_target%
^!Set %seconds_per_3mile_target%=^$Calc((^%seconds_per_mile%*3)-(^%minutes_per_3mile_target%*60);1)$
^!If ^$StrSize("^%seconds_per_3mile_target%")$=3 ^!Set %seconds_per_3mile_target%=0^%seconds_per_3mile_target%

^%nl%Mile Splits to Run ^%goal_time% for 5K
^%nl%^%minutes_per_mile_target%:^%seconds_per_mile_target% - 1 Mile
^%minutes_per_2mile_target%:^%seconds_per_2mile_target% - 2 Mile
^%minutes_per_3mile_target%:^%seconds_per_3mile_target% - 3 Mile
^%goal_time%.0 - finish^%nl%

;the end

Sample output from the clip:

Mile Splits to Run 18:10 for 5K

05:50.8 - 1 Mile
11:41.6 - 2 Mile
17:32.5 - 3 Mile
18:10.0 - finish

Keyword: mile, kilometer, k, 5, split, run, even, runner, target, goal, time, minutes, seconds

One Response to “Calculate Splits for a 5 Kilometer Race”

  1. Best Eavestrough Hamilton Says:

    I wish to take this opportunity to complement your website. You are doing a great service!

    Best Eavestrough Hamilton

This site is totally free to use, you have absolutely no moral or legal obligations to help us continue.
There are however, some costs involved in running the site.

<random humor>
Plus Franki needs fish food for his little friends.
</random humor>

So if this site helped you find your way, perhaps you could consider contributing to our costs. Whatever amount you feel this site was worth to you would be just wonderful.
Use PayPal if you do decide to share and help us with the costs and in appreciation for our time and attention, or alternatively buy a book from our Bookstore..

  Time  in  Don's  part  of the world is:   March 2, 2024, 10:56 am
  Time in Franki's part of the world is:   March 2, 2024, 11:56 pm
  Don't worry neither one sleeps very long!

privacy policy :: support us :: home :: live chat help
contact us :: forum ::tutorials :: bookstore :: Site Map

      Valid XHTML 1.0!             powered by Apache Server
Pic 3 Pic 3


CIGHTML Firefox Thunderbird ClamWin WordPress SpyBot S&D TheGIMP Apache for Windows Registry Cleaners More cool stuff:


HTMLfixIT Site Stats.

Browser Statistics
Internet Explorer 85.88%
IE 717.63%
IE 62.3%
IE 50.00%
IE other8.6%
Moz Firefox 3.x3.03%
Moz Firefox 2.x0.18%
Moz Firefox 0.x/1.x26.65%
Netscape 8.x0.00%
NS 6+/Mozilla2.73%
Moz Seamonkey0.00%
Netscape 4.x0.00%
Opera 9.x0.00%
Opera 8.x0.00%
Opera 7.x0.42%
Opera 6.x0.00%
Opera other0.42%
Safari Mac/Intel5.21%
Safari Mac/PPC0.06%
Safari Windows25.2%
Google Chrome1.51%

Resolution Statistics
640 x 4800.25%
800 x 60026.14%
1024 x 76836.55%
1152 x 8640.25%
1280 x 80011.68%
1280 x 8540.00%
1280 x 102417.01%
1400 x 10500.00%
1600 x 12001.02%
1920 x 12007.11%
2560 x 10240.00%

OS Statistics
Windows 741.55%
Windows Vista2.4%
Windows 20033.91%
Windows XP20.86%
Windows 20000.36%
Windows NT40.05%
Windows 98/ME0.05%
Windows 950.00%
Mac OSX8.03%
Mac Classic0.00%

New Windows Virus Alerts
also by sophos.

17 Apr 2011 Troj/Mdrop-DKE
17 Apr 2011 Troj/Sasfis-O
17 Apr 2011 Troj/Keygen-FU
17 Apr 2011 Troj/Zbot-AOY
17 Apr 2011 Troj/Zbot-AOW
17 Apr 2011 W32/Womble-E
17 Apr 2011 Troj/VB-FGD
17 Apr 2011 Troj/FakeAV-DFF
17 Apr 2011 Troj/SWFLdr-W
17 Apr 2011 W32/RorpiaMem-A

For details and removal instructions, click the virus in question.