The Tournament Director Forums

Main => Help Me => Topic started by: Linker_Split on September 10, 2017, 03:52:18 PM

Title: Convert hours in points
Post by: Linker_Split on September 10, 2017, 03:52:18 PM
Hi All,
anybody got a formula or can help me out to assign points based on hours of play?
Basically, it's 1 point every hour.
Obviously, I would like to round up the minutes (so 1h 23m will be 2 points for example)

Anybody got something like this?

Thank you
Title: Re: Convert hours in points
Post by: Corey Cooper on September 11, 2017, 12:50:44 PM
Yes, using the playingTime variable.  It holds the number of seconds the player was in the tournament.  Round up using the ceil() (ceiling) function.

ceil(playingTime / 3600)