Пример #1
0
  private float getWifeNoTax(
      E1reduceTax rt, boolean isYoung, boolean is65Retired, float totalIncom) {
    float reduceTaxValue = 0f;

    if (totalIncom <= 9000f && is65Retired) totalIncom += 9000f;
    if (totalIncom <= 9000f && isYoung) totalIncom += 9000f;

    if (rt != null) {
      if (Utils.toSafeInteger(rt.get_002()) == 1) reduceTaxValue += 2000f;
      reduceTaxValue += Utils.toSafeInteger(rt.get_004()) + Utils.toSafeInteger(rt.get_006());
    }

    return reduceTaxValue;
  }
Пример #2
0
  private float getPrincipalNoTax(
      E1reduceTax rt, boolean isYoung, boolean is65Retired, float totalIncom) {
    float reduceTaxValue = 0f;

    if (totalIncom <= 9000f && is65Retired) totalIncom += 9000f;
    if (totalIncom <= 9000f && isYoung) totalIncom += 9000f;

    if (rt != null) {
      if (Utils.toSafeInteger(rt.get_001()) == 1) reduceTaxValue += 2000f;
      if (Utils.toSafeInteger(rt.get_003()) <= 2)
        reduceTaxValue += 2000 * Utils.toSafeInteger(rt.get_003());
      else reduceTaxValue += 4000 + (Utils.toSafeInteger(rt.get_003()) - 2) * 3000;

      reduceTaxValue += 2000 * Utils.toSafeInteger(rt.get_005());
    }

    return reduceTaxValue;
  }