Example #1
0
  private float getPrincipalTaxableIncome(
      E1expensesRemovedFromTotalIncome erfti,
      E1taxableIncomes taxable,
      E1objectiveSpending objSpend,
      boolean isMarriage,
      boolean isRetired65) {

    float strict = 0f, removedIncomes = 0f, incomes = 0f;

    if (erfti != null) removedIncomes = getPrincipalRemovedFromTotalIncome(erfti);
    if (taxable != null) incomes = getPrincipalTotalTaxableIncome(taxable);
    if (objSpend != null)
      strict = getPrincipalTotalAnnualStrictCost(objSpend, isMarriage, isRetired65);
    float finalTaxable = 0;

    if ((incomes - removedIncomes) < strict) finalTaxable = strict;
    else finalTaxable = incomes - removedIncomes;

    // αποδείξεις
    if (erfti != null)
      if (Utils.toSafeFloat(erfti.get_049()) <= 60000
          && finalTaxable * 0.25 > Utils.toSafeFloat(erfti.get_049()))
        finalTaxable += finalTaxable * 0.1f;

    return finalTaxable;
  }