Hello, i am trying to create an Excel sheet to get different results about infringements and working times. The sheet should theoretically inform the driver if an infringement is being added to the future plans and also if it has actually taken place(for past actions). The sheet formulas and VBA code needed may be massive for my newbie level and it may need occasionally corrections here and there if needed. So the thread will be kept alive until it has reached a stable state.
Here is the EU regulation for reference: https://eur-lex.europa.eu/legal-content/EN/TXT/PDF/?uri=CELEX:02006R0561-20200820&from=HU
Here is the example sheet of how far i have managed to come so far: 46.9 KB file on MEGA
So i jump straight into the questions i'm encountering problems answering.
1)How to calculate the REST period? This shouldn't be only calculated from the time one finishes work till 24:00 but it must add up with the next day ONLY IF the next day is free of service. While if he works the next day the result should be restricted to calculating only that same day.
Example 1: Cell N313 should count 09:30+24:00+24:00+03:15(This is cause the next cells after N313, the N314 and N315 are empty(free of driving), plus the 03:15 from the N316.
Example 2: Cell N316 should be 08:45, cause since the next row contains a working day(J317/K317 is not 0 or empty) the add up should be restricted there.
Here is the EU regulation for reference: https://eur-lex.europa.eu/legal-content/EN/TXT/PDF/?uri=CELEX:02006R0561-20200820&from=HU
Here is the example sheet of how far i have managed to come so far: 46.9 KB file on MEGA
So i jump straight into the questions i'm encountering problems answering.
1)How to calculate the REST period? This shouldn't be only calculated from the time one finishes work till 24:00 but it must add up with the next day ONLY IF the next day is free of service. While if he works the next day the result should be restricted to calculating only that same day.
Example 1: Cell N313 should count 09:30+24:00+24:00+03:15(This is cause the next cells after N313, the N314 and N315 are empty(free of driving), plus the 03:15 from the N316.
Example 2: Cell N316 should be 08:45, cause since the next row contains a working day(J317/K317 is not 0 or empty) the add up should be restricted there.