I have to calculate the working times (DT) to suit the selected pause types.
First I have to create check boxes for my different types of pause, like this:
☐Avec Pause Administrative
☐Avec Pause toilette
☐Avec Pause déjeuner
☐Avec Pause 15min
The formula for working time (TD) is : DT = [Work_duration] – [pause_duration] with pause_duration is the value of pause_duration for the checked boxes.
For example :
In 03/04/2017
-If I check « Avec Pause Adminitrative »
=> DT = [Work_duration]-[pause_duration] for the pause_code= PA
ðDT = 158 :25 :00 – 04 :30 :00
-If I check « Avec Pause Adminitrative », « Avec Pause toilette »
=> DT = [Work_duration]-[pause_duration] for the pause_code = PA et PT
ðDT = 158 :25 :00 – (04 :30 :00 + 04 :20 :00)
-And if I don’t check anything on the ticked boxes DT= [Work_duration]