=SI(E9="";"";Impôt(E9))
Function Impôt(R&) As Long
Dim B&, T&, I&, n As Byte
Do
With [B4].Offset(n)
T = .Value: B = WorksheetFunction.Min(T, R)
I = I + Round((B - Val(.Offset(-1))) * .Offset(, 1) / 100, 0)
End With
n = n + 1
Loop Until R < T Or T = 0
Impôt = I
End Function