Rem ***** BASIC *****
Function decalDate(d&, dec&, fer As Range)
Dim i%, j%, f
If dec <> 0 Then
f = fer
For j = Sgn(dec) To dec Step Sgn(dec)
d = d + Sgn(dec)
d = decal(d, dec, f)
Next
End If
decalDate = d
End Function
Function decal(x&, y&, z)
Dim i%, j%
Do
For i = 1 To UBound(z, 1)
If x = z(i, 1) Or x Mod 7 = 1 Then Exit For
Next
If i > UBound(z, 1) Then Exit Do
x = x + Sgn(y)
Loop
decal = x
End Function