Adiciona valores para cálculo referente a exercício 2017.
[cascardo/declara.git] / lib / calcula.c
index 79a395c..47548b3 100644 (file)
@@ -1,5 +1,5 @@
 /*
- *  Copyright (C) 2015-2016  Thadeu Lima de Souza Cascardo <cascardo@minaslivre.org>
+ *  Copyright (C) 2015-2017  Thadeu Lima de Souza Cascardo <cascardo@minaslivre.org>
  *
  *  This program is free software; you can redistribute it and/or modify
  *  it under the terms of the GNU General Public License as published by
 static const long long dependente[ANO(MAX_ANOS)] = {
        [ANO(2015)] = 215652,
        [ANO(2016)] = 227508,
+       [ANO(2017)] = 227508,
 };
 
 static const long long instrucao[ANO(MAX_ANOS)] = {
        [ANO(2015)] = 337583,
        [ANO(2016)] = 356150,
+       [ANO(2017)] = 356150,
 };
 
 long long deducao_dependente(struct declaracao *dec)
@@ -147,19 +149,31 @@ static struct taxtable table2016[] = {
        { 9999999999999LL, 0, 0, },
 };
 
+static struct taxtable table2017[] = {
+       {       0,    0,       0, },
+       { 2284777,  750,  171358, },
+       { 3391981, 1500,  425757, },
+       { 4501261, 2250,  763351, },
+       { 5597616, 2750, 1043232, },
+       { 9999999999999LL, 0, 0, },
+};
+
 static struct taxtable *table[ANO(MAX_ANOS)] = {
        [ANO(2015)] = table2015,
        [ANO(2016)] = table2016,
+       [ANO(2017)] = table2017,
 };
 
 static const long long simples[ANO(MAX_ANOS)] = {
        [ANO(2015)] = 1588089,
        [ANO(2016)] = 1675434,
+       [ANO(2017)] = 1675434,
 };
 
 static const long long obrigatoriedade[ANO(MAX_ANOS)] = {
        [ANO(2015)] = 2681655,
        [ANO(2016)] = 2812391,
+       [ANO(2017)] = 2855970, /* De acordo com IN 1671/2016 */
 };
 
 static long long imposto(struct taxtable *tt, long long tr, int verbose)