Calcula imposto para 2016.
authorThadeu Lima de Souza Cascardo <cascardo@cascardo.eti.br>
Sat, 19 Mar 2016 19:23:41 +0000 (16:23 -0300)
committerThadeu Lima de Souza Cascardo <cascardo@cascardo.eti.br>
Sat, 19 Mar 2016 19:23:41 +0000 (16:23 -0300)
Adiciona os valores de limites e alĂ­quotas suportados para o exercĂ­cio
de 2016.

lib/ano.h
lib/calcula.c

index 7cc9969..65ac852 100644 (file)
--- a/lib/ano.h
+++ b/lib/ano.h
@@ -20,7 +20,7 @@
 #define _ANO_H
 
 #define PRIMEIRO_ANO 2015
-#define ULTIMO_ANO 2015
+#define ULTIMO_ANO 2016
 #define MAX_ANOS (ULTIMO_ANO + 1)
 #define ANO(ano) (ano - PRIMEIRO_ANO)
 #define ANO_VALIDO(ano) (ANO(ano) >= 0 && ANO(ano) < ANO(MAX_ANOS))
index 8507a50..fdf3b83 100644 (file)
@@ -28,6 +28,7 @@
 
 static const long long dependente[ANO(MAX_ANOS)] = {
        [ANO(2015)] = 215652,
+       [ANO(2016)] = 227508,
 };
 
 long long deducao_dependente(struct declaracao *dec)
@@ -86,16 +87,28 @@ static struct taxtable table2015[] = {
        { 9999999999999LL, 0, 0, },
 };
 
+static struct taxtable table2016[] = {
+       {       0,    0,       0, },
+       { 2249914,  750,  168743, },
+       { 3347773, 1500,  419826, },
+       { 4447675, 2250,  753402, },
+       { 5537355, 2750, 1030270, },
+       { 9999999999999LL, 0, 0, },
+};
+
 static struct taxtable *table[ANO(MAX_ANOS)] = {
        [ANO(2015)] = table2015,
+       [ANO(2016)] = table2016,
 };
 
 static const long long simples[ANO(MAX_ANOS)] = {
        [ANO(2015)] = 1588089,
+       [ANO(2016)] = 1675434,
 };
 
 static const long long obrigatoriedade[ANO(MAX_ANOS)] = {
        [ANO(2015)] = 2681655,
+       [ANO(2016)] = 2812391,
 };
 
 static long long imposto(struct taxtable *tt, long long tr, int verbose)