Raised This Month: $ Target: $400
 0% 

Hours in percentages


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Santaaa
BANNED
Join Date: May 2012
Old 07-13-2012 , 08:01   Hours in percentages
Reply With Quote #1

Hey,

How will I calculate the hours into percentages. I tryed:
PHP Code:
new hour get_user_time() / 3600
new percent hour 100 25 
Maybe its * 60 because a hour has 60 minutes? but I dont know.
But if i will do that i will come out on 60% max when the user has reached the max time. I want that it goes max to 100%

Last edited by Santaaa; 07-13-2012 at 08:16.
Santaaa is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 15:16.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode