Function taxe(cel2, cel, DernierTrimestre, a)
If cel = "" Then Exit Function
Select Case DernierTrimestre
Case 1: m = 4
Case 2: m = 7
Case 3: m = 10
Case 4: m = 1: a = a + 1
Case Else: m = 4 ' valeur par defaut, à modifier
End Select
d = DateDiff("m", CDate("1/" & m & "/" & a), cel)
If d > 0 Then
taxe = d - 1
taxe = (cel2 * 10) / 100 + (cel2 * 5) / 100 + cel2 + ((cel2 * 0.5 / 100 * taxe))
Else
taxe = cel2
End If
End Function