{
  "configurationId": "https://docs.datamart.cl/resources/income/configuration.json",
  "tableId": "https://docs.datamart.cl/resources/income/tableTax.json",
  "employers": [
    {
      "source": "AFC",
      "employerId": "1-8",
      "employerName": "Razón Social",
      "active": true,
      "contractType": "DURACIÓN INDEFINIDA"
    },
    {
      "source": "AFC",
      "employerId": "1-9",
      "employerName": "Razón Social",
      "active": false,
      "contractType": "DURACIÓN INDEFINIDA"
    },
    {
      "source": "AFC",
      "employerId": "1-2",
      "employerName": "Razón Social",
      "active": false,
      "contractType": "DURACIÓN INDEFINIDA"
    },
    {
      "source": "AFC",
      "employerId": "1-4",
      "employerName": "Razón Social",
      "active": false,
      "contractType": "DURACIÓN INDEFINIDA"
    }
  ],
  "sources": [
    "DAI",
    "AFC",
    "CTE_Honorarios"
  ],
  "pastIncomeStatements": [
    {
      "statementYear": 2022,
      "statementData": [
        {
          "accountCode": "110",
          "accountCodeDesc": "Honorarios y remuneracion de directores",
          "accountValue": 333468,
          "accountSign": "+"
        },
        {
          "accountCode": "161",
          "accountCodeDesc": "Sueldos, pensiones y otros similares",
          "accountValue": 11313719,
          "accountSign": "+"
        }
      ]
    },
    {
      "statementYear": 2021,
      "statementData": [
        {
          "accountCode": "110",
          "accountCodeDesc": "Honorarios y remuneracion de directores",
          "accountValue": 317800,
          "accountSign": "+"
        },
        {
          "accountCode": "161",
          "accountCodeDesc": "Sueldos, pensiones y otros similares",
          "accountValue": 26257382,
          "accountSign": "+"
        }
      ]
    },
    {
      "statementYear": 2020,
      "statementData": [

      ]
    }
  ],
  "incomeSources": [
    {
      "source": "AFC",
      "depthLevel": "Employer",
      "data": [
        {
          "employerId": "1-1",
          "originalValues": [
            {
              "period": "2022-1",
              "amount": 0,
              "contractType": ""
            },
            {
              "period": "2022-2",
              "amount": 0,
              "contractType": ""
            },
            {
              "period": "2022-3",
              "amount": 0,
              "contractType": ""
            },
            {
              "period": "2022-4",
              "amount": 0,
              "contractType": ""
            },
            {
              "period": "2022-5",
              "amount": 3688413,
              "contractType": "DURACIÓN INDEFINIDA"
            },
            {
              "period": "2022-6",
              "amount": 3688413,
              "contractType": "DURACIÓN INDEFINIDA"
            },
            {
              "period": "2022-7",
              "amount": 3688413,
              "contractType": "DURACIÓN INDEFINIDA"
            },
            {
              "period": "2022-8",
              "amount": 3696329,
              "contractType": "DURACIÓN INDEFINIDA"
            },
            {
              "period": "2022-9",
              "amount": 3946329,
              "contractType": "DURACIÓN INDEFINIDA"
            },
            {
              "period": "2022-10",
              "amount": 3696329,
              "contractType": "DURACIÓN INDEFINIDA"
            },
            {
              "period": "2022-11",
              "amount": 3696329,
              "contractType": "DURACIÓN INDEFINIDA"
            },
            {
              "period": "2022-12",
              "amount": 4008829,
              "contractType": "DURACIÓN INDEFINIDA"
            }
          ],
          "calculatedValues": [
            {
              "period": "2022-1",
              "amount": 0
            },
            {
              "period": "2022-2",
              "amount": 0
            },
            {
              "period": "2022-3",
              "amount": 0
            },
            {
              "period": "2022-4",
              "amount": 0
            },
            {
              "period": "2022-5",
              "amount": 3688413
            },
            {
              "period": "2022-6",
              "amount": 3688413
            },
            {
              "period": "2022-7",
              "amount": 3688413
            },
            {
              "period": "2022-8",
              "amount": 3696329
            },
            {
              "period": "2022-9",
              "amount": 3946329
            },
            {
              "period": "2022-10",
              "amount": 3696329
            },
            {
              "period": "2022-11",
              "amount": 3696329
            },
            {
              "period": "2022-12",
              "amount": 4008829
            }
          ],
          "parameters": [
            {
              "name": "Calcular Estadisticos sin corregir Lagunas",
              "value": false
            },
            {
              "name": "Porcentaje sobre mínimo",
              "value": 0
            },
            {
              "name": "Porcentaje castigo sobre mínimo",
              "value": 0
            },
            {
              "name": "Solo Contratos Indefinidos",
              "value": true
            },
            {
              "name": "Solo Contratos Vigentes",
              "value": true
            },
            {
              "name": "Lagunas Inicio",
              "value": 4
            },
            {
              "name": "Lagunas Intermedias",
              "value": 7
            },
            {
              "name": "Lagunas Fin",
              "value": 4
            }
          ],
          "validations": [
            {
              "name": "Maximo Lagunas",
              "value": true
            },
            {
              "name": "Meses Ultimo Empleador",
              "value": true
            },
            {
              "name": "Contrato Indefinido Vigente",
              "value": true
            },
            {
              "name": "Sueldo Minimo",
              "value": true
            }
          ],
          "discountCalculations": [

          ],
          "statistics": {
            "originalBlankPeriods": 4,
            "calculatedBlankPeriods": 4,
            "mean": 2509115.33,
            "standardDeviation": 1777123.64
          }
        }
      ]
    },
    {
      "source": "AFC",
      "depthLevel": "Client",
      "data": [
        {
          "originalValues": [

          ],
          "calculatedValues": [
            {
              "period": "2022-1",
              "amount": 0
            },
            {
              "period": "2022-2",
              "amount": 0
            },
            {
              "period": "2022-3",
              "amount": 0
            },
            {
              "period": "2022-4",
              "amount": 0
            },
            {
              "period": "2022-5",
              "amount": 3464955
            },
            {
              "period": "2022-6",
              "amount": 3464955
            },
            {
              "period": "2022-7",
              "amount": 3464955
            },
            {
              "period": "2022-8",
              "amount": 3472824
            },
            {
              "period": "2022-9",
              "amount": 3721324
            },
            {
              "period": "2022-10",
              "amount": 3472824
            },
            {
              "period": "2022-11",
              "amount": 3472824
            },
            {
              "period": "2022-12",
              "amount": 3783449
            }
          ],
          "parameters": [
            {
              "name": "Calcular Estadisticos sin corregir Lagunas",
              "value": false
            },
            {
              "name": "Porcentaje sobre mínimo",
              "value": 0
            },
            {
              "name": "Porcentaje castigo sobre mínimo",
              "value": 0
            },
            {
              "name": "Solo Contratos Indefinidos",
              "value": true
            },
            {
              "name": "Solo Contratos Vigentes",
              "value": true
            },
            {
              "name": "Lagunas Inicio",
              "value": 4
            },
            {
              "name": "Lagunas Intermedias",
              "value": 7
            },
            {
              "name": "Lagunas Fin",
              "value": 4
            }
          ],
          "validations": [
            {
              "name": "Maximo Lagunas",
              "value": true
            },
            {
              "name": "Meses Ultimo Empleador",
              "value": true
            },
            {
              "name": "Contrato Indefinido Vigente",
              "value": true
            },
            {
              "name": "Sueldo Minimo",
              "value": true
            }
          ],
          "discountCalculations": [
            {
              "variable": "AFP",
              "value": 0.07
            },
            {
              "variable": "Isapre",
              "value": 0.12
            },
            {
              "variable": "AFC Seguro Cesantia",
              "value": 0.006
            }
          ],
          "statistics": {
            "calculatedBlankPeriods": 4,
            "mean": 2359842.87,
            "standardDeviation": 1671718.89
          }
        }
      ]
    },
    {
      "source": "DJ1887",
      "depthLevel": "Employer",
      "data": [

      ]
    },
    {
      "source": "CTE_Honorarios",
      "depthLevel": "Client",
      "data": [
        {
          "originalValues": [
            {
              "period": "202302",
              "amount": 0
            },
            {
              "period": "202301",
              "amount": 0
            },
            {
              "period": "202212",
              "amount": 0
            },
            {
              "period": "202211",
              "amount": 0
            },
            {
              "period": "202210",
              "amount": 0
            },
            {
              "period": "202209",
              "amount": 0
            },
            {
              "period": "202208",
              "amount": 0
            },
            {
              "period": "202207",
              "amount": 0
            },
            {
              "period": "202206",
              "amount": 0
            },
            {
              "period": "202205",
              "amount": 0
            },
            {
              "period": "202204",
              "amount": 0
            },
            {
              "period": "202203",
              "amount": 739587
            }
          ],
          "calculatedValues": [
            {
              "period": "202302",
              "amount": 0
            },
            {
              "period": "202301",
              "amount": 0
            },
            {
              "period": "202212",
              "amount": 0
            },
            {
              "period": "202211",
              "amount": 0
            },
            {
              "period": "202210",
              "amount": 0
            },
            {
              "period": "202209",
              "amount": 0
            },
            {
              "period": "202208",
              "amount": 0
            },
            {
              "period": "202207",
              "amount": 0
            },
            {
              "period": "202206",
              "amount": 0
            },
            {
              "period": "202205",
              "amount": 0
            },
            {
              "period": "202204",
              "amount": 0
            },
            {
              "period": "202203",
              "amount": 739587
            }
          ],
          "parameters": [
            {
              "name": "Calcular Estadisticos sin corregir Lagunas",
              "value": false
            },
            {
              "name": "Lagunas Inicio",
              "value": 4
            },
            {
              "name": "Lagunas Intermedias",
              "value": 7
            },
            {
              "name": "Lagunas Fin",
              "value": 4
            }
          ],
          "validations": [
            {
              "name": "Maximo Lagunas",
              "value": false
            },
            {
              "name": "Ultimos Meses Honorarios",
              "value": false
            },
            {
              "name": "Sueldo Minimo",
              "value": true
            }
          ],
          "discountCalculations": [

          ],
          "statistics": {
            "calculatedBlankPeriods": 11,
            "mean": 61632.25,
            "standardDeviation": 204411.05
          }
        }
      ]
    }
  ],
  "consolidatedIncome": [
    {
      "accountCode": "110",
      "accountCodeDesc": "Honorarios y Remuneracion de Directores",
      "calculatedValues": [
        {
          "period": "1",
          "amount": 0
        },
        {
          "period": "2",
          "amount": 0
        },
        {
          "period": "3",
          "amount": 0
        },
        {
          "period": "4",
          "amount": 0
        },
        {
          "period": "5",
          "amount": 0
        },
        {
          "period": "6",
          "amount": 0
        },
        {
          "period": "7",
          "amount": 0
        },
        {
          "period": "8",
          "amount": 0
        },
        {
          "period": "9",
          "amount": 0
        },
        {
          "period": "10",
          "amount": 0
        },
        {
          "period": "11",
          "amount": 0
        }
      ],
      "parameters": [
        {
          "name": "Eliminacion Extremos",
          "value": true
        }
      ],
      "statistics": {
        "calculatedBlankPeriods": 11,
        "extremesElimination": true,
        "mean": 0,
        "standardDeviation": 0,
        "confidenceValue": 0.5,
        "zvalue": 0,
        "confidenceInterval": [
          0,
          0
        ]
      }
    },
    {
      "accountCode": "161",
      "accountCodeDesc": "Sueldos, pensiones y otros similares",
      "calculatedValues": [
        {
          "period": "1",
          "amount": 0
        },
        {
          "period": "2",
          "amount": 0
        },
        {
          "period": "3",
          "amount": 0
        },
        {
          "period": "4",
          "amount": 0
        },
        {
          "period": "5",
          "amount": 3464955
        },
        {
          "period": "6",
          "amount": 3464955
        },
        {
          "period": "7",
          "amount": 3472824
        },
        {
          "period": "8",
          "amount": 3721324
        },
        {
          "period": "9",
          "amount": 3472824
        },
        {
          "period": "10",
          "amount": 3472824
        }
      ],
      "parameters": [
        {
          "name": "Eliminacion Extremos",
          "value": true
        },
        {
          "name": "Consolidación Sueldos",
          "value": 4,
          "sources": [
            "AFC",
            "DJ1887"
          ]
        }
      ],
      "statistics": {
        "calculatedBlankPeriods": 4,
        "extremesElimination": true,
        "mean": 2106970.92,
        "standardDeviation": 1721869.8,
        "confidenceValue": 0.5,
        "zvalue": 0,
        "confidenceInterval": [
          2106970.92,
          2106970.92
        ]
      }
    }
  ],
  "incomeStatementsProjection": {
    "statementYear": 2023,
    "statementData": [
      {
        "accountCode": "110",
        "accountCodeDesc": "Honorarios y remuneracion de directores",
        "accountValue": 131820.4,
        "accountSign": "+",
        "pastYears": [
          {
            "year": 2022,
            "value": 333468,
            "weight": 0.75
          },
          {
            "year": 2021,
            "value": 317800,
            "weight": 0.25
          },
          {
            "year": 2020,
            "value": 0,
            "weight": 0.25
          }
        ],
        "currentYear": {
          "year": 2023,
          "value": 0,
          "weight": 0.2,
          "validation": [

          ]
        },
        "pastValuesWeight": 0.8,
        "projectedMethodCode": 0,
        "projectedMethodDesc": "Promedio ponderado actual y periodos anteriores"
      },
      {
        "accountCode": "161",
        "accountCodeDesc": "Sueldos, pensiones y otros similares",
        "accountValue": 8548219,
        "accountSign": "+",
        "pastYears": [
          {
            "year": 2022,
            "value": 11313719,
            "weight": 0.75
          },
          {
            "year": 2021,
            "value": 26257382,
            "weight": 0.25
          },
          {
            "year": 2020,
            "value": 0,
            "weight": 0.25
          }
        ],
        "currentYear": {
          "year": 2023,
          "value": 5056730,
          "weight": 0.2,
          "validation": [

          ]
        },
        "pastValuesWeight": 0.8,
        "projectedMethodCode": 0,
        "projectedMethodDesc": "Promedio ponderado actual y periodos anteriores"
      }
    ]
  },
  "results": [
    {
      "accountId": "1",
      "accountName": "annualIncomeBeforeTaxes",
      "accountAlias": "Base Imponible",
      "accountValue": 8680039.4
    },
    {
      "accountId": "2",
      "accountName": "IncomeTaxes",
      "accountAlias": "Impuesto Global Complementario",
      "accountValue": 0
    },
    {
      "accountId": "3",
      "accountName": "healthInsuranceAmount",
      "accountAlias": "Seguro de Salud",
      "accountValue": 1604315
    },
    {
      "accountId": "4",
      "accountName": "retirementoFundAmount",
      "accountAlias": "Monto AFP",
      "accountValue": 6299
    },
    {
      "accountId": "5",
      "accountName": "unemploymentInsuranceAmount",
      "accountAlias": "Monto AFC",
      "accountValue": 10
    },
    {
      "accountId": "6",
      "accountName": "annualIncomeAfterTaxes",
      "accountAlias": "Ingreso Anual despues de impuestos",
      "accountValue": 8680039.4
    },
    {
      "accountId": "7",
      "accountName": "monthlyIncome",
      "accountAlias": "Ingreso Mensual",
      "accountValue": 723336.62
    }
  ]
}