Dim DurSej As Integer
Dim DurMensuel As Integer
Dim DateDebuOper As Date
DurSej = Date - DateDebuOper
If DurSej <= 30 Then
DurMensuel = DurSej
' Display data in a sheet (nom, prenom, matricule, operationEnCours, dateDebutSejour, dateFinSejour, DureSejourEnCours, StatutOperation, DureMensuelleSejour (as a temporary field that will display the value of the DurMensuel variable))
Else
Do While DurSej > 30
DurSej = DurSej - 30
Loop
DurMensuel = DurSej
' Display data in a sheet (nom, prenom, matricule, operationEnCours, dateDebutSejour, dateFinSejour, DureSejourEnCours, StatutOperation, DureMensuelleSejour (as a temporary field that will display the value of the DurMensuel variable))
End If