heres one for all you php array lovers
Array (
[0] => Array ( [date] => 2013-01-28 [diff] => 28800 )
[1] => Array ( [date] => 2013-01-29 [diff] => 21602 )
[2] => Array ( [date] => 2013-01-30 [diff] => 14400 )
[3] => Array ( [date] => 2013-01-30 [diff] => 16800 )
[4] => Array ( [date] => 2013-01-31 [diff] => 10800 )
[5] => Array ( [date] => 2013-01-31 [diff] => 27600 )
[6] => Array ( [date] => 2013-02-01 [diff] => 7233 )
[7] => Array ( [date] => 2013-02-01 [diff] => 7205 )
[8] => Array ( [date] => 2013-02-01 [diff] => 12605 )
)
my end result is the following
Regular Time = this one i need to add up each days total diff up to 28800 per day
OT Time = this one i need to add up any time over 28800 each day and anything from reg time is over 144000
Total Time = this one is just reg and OT added together.
my issue is i can not figure out how to add days together. like you will see multiple entries for 30th, 31st and 1st.
these times should be added to give me total time for that day.
the way i see it is i need to add the days times up first then do the calculations for each day to get the total time.
then i need to add up all times under 28800 each day OT get regular time up to 144000
then i need to add up any time over 144000 and anything over 28800 each day.
this would give em the end results for reg, to and total times.
basically the formula i have to work with is the following.
reg time is up to 28800 seconds per day and up to 144000 regular seconds per week.
OT is anything over 28800 seconds per day an anything over 144000 per week
total is reg and OT combined.
any help here would be greatly helpful.
-
Lovelogic -
Thanks
{{ DiscussionBoard.errors[7687567].message }} -
-
rft16 -
Thanks
{{ DiscussionBoard.errors[7691091].message }} -