La formule est celle-ci:
Function ImpotProv(x) As Currency
If x <= 28710 Then
ImpotProv = 0.16 * x
ElseIf 28710 < x < 57430 Then
ImpotProv = (0.2 * (x - 28710)) + 4594
ElseIf x > 57430 Then
ImpotProv = (0.24 * (x - 57430)) + 10338
End If
End Function
Function ImpotFed(y) As Currency
If y <= 36378 Then
ImpotFed = y * 0.15
ElseIf 36378 < y < 72756 Then
ImpotFed = (0.22 * (y - 36378)) + 5456
ElseIf 72756 < y < 118285 Then
ImpotFed = (0.26 * (y - 72756)) + 13460
ElseIf y > 118285 Then
ImpotFed = (0.29 * (y - 118285)) + 25297
End If
End Function
Et là, je veux que la fonction ImpotTot retourne la somme des résultats des deux autre fonctions. De la façon dont tu me l'as indiqué Joe, la nouvelle fonction (ImpotTot) calcule les deux autres fonctions avec deux paramètres. Je voudrais que la fonction ImpotTot aie un paramètre qui additionne les deux autres fonction. Tu vois le genre ?
Merci,