example:
*********************
Rules for breaking
X 07:00 - 21:59
Y 22:00 - 06:59
Working hours
11.8.2010 22:00 - 12.8.2010 08:00
13.8.2010 17:00 - 13.8.2010 23:00
needs to be broken down to:
2h X 11.8.2010
7h X 12.8.2010
1h Y 12.8.2010
5h X 13.8.2010
1h Y 13.8.2010
******************************
I can't seem to find the needed algorithm, i'm stuck, so if you have
any suggestions, please help :)
Thanx!