{
  "schema": "tassi.estimate-intake.v1",
  "scope": "country_and_employment_facts_for_preliminary_employment_estimates",
  "ruleVersion": "2026-10-24.1",
  "ruleReviewStatus": "official_sources_checked_tax_reviewer_approval_pending",
  "productionApproved": false,
  "incomeYears": [
    2025,
    2026
  ],
  "inputSchema": "/hosted-openapi.json#/components/schemas/SourceEstimateInput",
  "coverageCheck": "/api/v1/coverage/check",
  "rules": "/estimate-rules.json",
  "incomeQuestions": [
    {
      "key": "singaporeEmploymentArrangement",
      "inputId": "sgEmploymentArrangement",
      "type": "enum",
      "prompt": {
        "en": "Which best describes this job?",
        "zh-Hant": "這份工作的安排是？"
      },
      "visibleWhen": {
        "all": [
          {
            "field": "income.category",
            "operator": "in",
            "value": [
              "Salary",
              "Bonus"
            ]
          },
          {
            "any": [
              {
                "field": "countries",
                "operator": "includes",
                "value": "Singapore"
              },
              {
                "field": "income.employerCountry",
                "operator": "eq",
                "value": "Singapore"
              }
            ]
          },
          {
            "field": "income.workCountry",
            "operator": "nonempty"
          },
          {
            "any": [
              {
                "field": "income.workCountry",
                "operator": "neq",
                "value": "Singapore"
              },
              {
                "field": "income.singaporeEmploymentArrangement",
                "operator": "in",
                "value": [
                  "incidental",
                  "wholly_overseas",
                  "part_year_overseas",
                  "government"
                ]
              }
            ]
          }
        ]
      },
      "inputLocation": "income[]",
      "unknownEffect": "no_singapore_estimate_for_overseas_work",
      "options": [
        {
          "value": "unknown",
          "label": {
            "en": "Not sure yet",
            "zh-Hant": "尚不確定"
          }
        },
        {
          "value": "incidental",
          "label": {
            "en": "Singapore job, overseas duties",
            "zh-Hant": "新加坡工作，包含海外職務"
          }
        },
        {
          "value": "wholly_overseas",
          "label": {
            "en": "Wholly overseas, non-government",
            "zh-Hant": "合約與工作全在海外，非政府職務"
          }
        },
        {
          "value": "part_year_overseas",
          "label": {
            "en": "Overseas posting for part of the year",
            "zh-Hant": "年度中部分期間海外任職"
          }
        },
        {
          "value": "government",
          "label": {
            "en": "Singapore Government",
            "zh-Hant": "代表新加坡政府工作"
          }
        }
      ],
      "help": {
        "en": "Use your contract and actual duties, not the receiving bank. Choose part-year posting if this income spans a change between Singapore-based and overseas-based employment. A wholly overseas job excludes government work and any work in Singapore.",
        "zh-Hant": "請依合約與實際職務選擇，不是依收款銀行判斷。若此筆所得跨越新加坡與海外任職安排的變更，請選部分期間海外任職。全海外工作不包含政府職務或任何在新加坡的工作。"
      },
      "citations": [
        "https://www.iras.gov.sg/taxes/individual-income-tax/employees/scenario-based-faqs-for-working-in-singapore-and-abroad/i-want-to-know-the-tax-treatment-on-working-outside-singapore",
        "https://www.iras.gov.sg/taxes/individual-income-tax/basics-of-individual-income-tax/what-is-taxable-what-is-not/income-received-from-overseas"
      ]
    }
  ],
  "reliefQuestions": [
    {
      "key": "ordinaryEmploymentOnly",
      "type": "boolean",
      "inputLocation": "facts",
      "prompt": {
        "en": "Is this regular employee pay only?",
        "zh-Hant": "這是否僅為一般受僱薪資？"
      },
      "help": {
        "en": "Choose Yes only for ordinary employment. Director fees, government work, performers, athletes, visiting teachers or researchers, students or trainees and international transport crew need separate treaty rules. This does not confirm eligibility.",
        "zh-Hant": "僅限一般受僱工作才選是。董事酬勞、政府職務、表演者、運動員、訪問教師或研究員、學生或受訓人員、國際運輸船機人員須適用其他協定規則。此答案不代表已確認減免資格。"
      },
      "options": [
        {
          "value": "",
          "label": {
            "en": "Not sure yet",
            "zh-Hant": "尚不確定"
          }
        },
        {
          "value": "true",
          "label": {
            "en": "Yes",
            "zh-Hant": "是"
          }
        },
        {
          "value": "false",
          "label": {
            "en": "No",
            "zh-Hant": "否"
          }
        }
      ],
      "citations": [
        "https://www.iras.gov.sg/media/docs/default-source/dtas/singapore-taiwan-dta-%28ratified%29%2813-feb-2026%29.pdf"
      ]
    },
    {
      "key": "treatyPermanentHome",
      "type": "enum",
      "inputLocation": "facts",
      "prompt": {
        "en": "Where was a permanent home available?",
        "zh-Hant": "哪裡有可持續使用的住所？"
      },
      "help": {
        "en": "Consider the income year. A permanent home is not your citizenship, registered address or a day-count test. A home can be owned or rented. If the arrangement changed during the year or is unclear, choose Not sure yet and request review.",
        "zh-Hant": "請以所得年度的情況回答。可持續使用的住所不等同國籍、戶籍或天數，可為自有或租用。年度中有變更或不確定時，請選尚不確定並提出審查。"
      },
      "options": [
        {
          "value": "unknown",
          "label": {
            "en": "Not sure yet",
            "zh-Hant": "尚不確定"
          }
        },
        {
          "value": "Singapore",
          "label": {
            "en": "Singapore",
            "zh-Hant": "新加坡"
          }
        },
        {
          "value": "Taiwan",
          "label": {
            "en": "Taiwan",
            "zh-Hant": "台灣"
          }
        },
        {
          "value": "both",
          "label": {
            "en": "Both",
            "zh-Hant": "兩地都有"
          }
        },
        {
          "value": "neither",
          "label": {
            "en": "Neither",
            "zh-Hant": "兩地都沒有"
          }
        }
      ],
      "citations": [
        "https://www.iras.gov.sg/media/docs/default-source/dtas/singapore-taiwan-dta-%28ratified%29%2813-feb-2026%29.pdf"
      ]
    },
    {
      "key": "treatyCloserRelations",
      "type": "enum",
      "inputLocation": "facts",
      "prompt": {
        "en": "Where were your personal and economic ties closer?",
        "zh-Hant": "個人與經濟關係在哪裡更密切？"
      },
      "help": {
        "en": "Consider both personal and economic relations, not just the employer or bank. If you lack the facts, choose Not sure yet. Cannot be determined moves to the next treaty test.",
        "zh-Hant": "須綜合個人與經濟關係，不能只看雇主或銀行所在地。資料不足請選尚不確定；無法判定時才使用下一項協定測試。"
      },
      "options": [
        {
          "value": "unknown",
          "label": {
            "en": "Not sure yet",
            "zh-Hant": "尚不確定"
          }
        },
        {
          "value": "Singapore",
          "label": {
            "en": "Singapore",
            "zh-Hant": "新加坡"
          }
        },
        {
          "value": "Taiwan",
          "label": {
            "en": "Taiwan",
            "zh-Hant": "台灣"
          }
        },
        {
          "value": "undetermined",
          "label": {
            "en": "Cannot be determined",
            "zh-Hant": "無法判定"
          }
        }
      ],
      "citations": [
        "https://www.iras.gov.sg/media/docs/default-source/dtas/singapore-taiwan-dta-%28ratified%29%2813-feb-2026%29.pdf"
      ]
    },
    {
      "key": "treatyHabitualAbode",
      "type": "enum",
      "inputLocation": "facts",
      "prompt": {
        "en": "Where did you habitually live?",
        "zh-Hant": "您經常居住在哪裡？"
      },
      "help": {
        "en": "Consider your pattern of living, not simply which country has more days. Both or Neither requires the authorities to resolve treaty residence.",
        "zh-Hant": "請考量生活型態，不能只比較停留天數。兩地都有或都沒有時，須由稅務機關解決協定居民身分。"
      },
      "options": [
        {
          "value": "unknown",
          "label": {
            "en": "Not sure yet",
            "zh-Hant": "尚不確定"
          }
        },
        {
          "value": "Singapore",
          "label": {
            "en": "Singapore",
            "zh-Hant": "新加坡"
          }
        },
        {
          "value": "Taiwan",
          "label": {
            "en": "Taiwan",
            "zh-Hant": "台灣"
          }
        },
        {
          "value": "both",
          "label": {
            "en": "Both",
            "zh-Hant": "兩地都有"
          }
        },
        {
          "value": "neither",
          "label": {
            "en": "Neither",
            "zh-Hant": "兩地都沒有"
          }
        }
      ],
      "citations": [
        "https://www.iras.gov.sg/media/docs/default-source/dtas/singapore-taiwan-dta-%28ratified%29%2813-feb-2026%29.pdf"
      ]
    }
  ],
  "instructions": [
    "Check country, income-year and income-type coverage first. This catalog does not extend coverage.",
    "Ask only questions for selected countries and satisfied visibility conditions. Fact keys belong inside facts.",
    "Omit unknown boolean or numeric answers; never convert missing answers to false or zero. Use unknown for unconfirmed Singapore residency.",
    "Income, currency, employer and actual work facts are separate required inputs. Presence days alone do not determine income sourcing.",
    "incomeQuestions belong on each income item, not facts. Singapore incidental overseas duties include the full salary in Singapore before any credit. Wholly overseas non-government contracts require no Singapore work; conflicting facts and government cases need review. part_year_overseas identifies income spanning a change between Singapore-based and overseas-based employment: Singapore needs posting dates, contract changes and pay by period checked before any total or credit; supported Taiwan work-pay estimates remain separate. Do not relabel a posting as incidental or wholly overseas to obtain a quote. Work in an unselected supported country does not add that country's estimate.",
    "Citations explain why facts matter; they are not current-source verification or professional approval.",
    "Ask treaty residence questions only after ordinaryEmploymentOnly is true. If the result reason is employment_type_outside_projection, explain that this pay needs a separate double-tax review.",
    "A filing-ready double-tax credit is not calculated. Optional reliefProjection covers one regular job worked wholly in Taiwan, not split work or multiple incomes. Its residence follows Article 4 in order: permanent home, closer relations when homes exist in both, then habitual abode only if closer relations cannot be determined or there is no permanent home. Both/neither habitual abode needs authority review. Ask only the relevant reliefQuestions; unknown is not a failed tie-breaker. Projection is not credit entitlement, payment evidence or a final total. Total payable is not determined."
  ],
  "countries": [
    {
      "country": "Singapore",
      "countryCode": "SG",
      "fieldsetId": "singaporeFields",
      "label": {
        "en": "Singapore",
        "zh-Hant": "新加坡"
      },
      "questions": [
        {
          "key": "singaporeResidency",
          "inputId": "sgResidency",
          "type": "enum",
          "prompt": {
            "en": "Singapore tax residency",
            "zh-Hant": "新加坡稅務居民身分"
          },
          "values": [
            "resident",
            "non_resident",
            "unknown"
          ],
          "options": [
            {
              "value": "unknown",
              "label": {
                "en": "Not sure yet",
                "zh-Hant": "尚不確定"
              }
            },
            {
              "value": "resident",
              "label": {
                "en": "Confirmed resident",
                "zh-Hant": "已確認為稅務居民"
              }
            },
            {
              "value": "non_resident",
              "label": {
                "en": "Confirmed non-resident",
                "zh-Hant": "已確認為非稅務居民"
              }
            }
          ],
          "help": {
            "en": "Citizenship or a day count alone may not settle your residency. Singapore citizens living abroad should check their normal-residence position.",
            "zh-Hant": "國籍或停留天數不一定能單獨判定稅務居民身分。住在海外的新加坡公民，應確認通常居住地的認定。"
          },
          "unknownEffect": "resident_and_nonresident_rate_range",
          "citations": [
            "https://www.iras.gov.sg/taxes/individual-income-tax/basics-of-individual-income-tax/tax-residency-and-tax-rates/working-out-my-tax-residency"
          ]
        }
      ]
    },
    {
      "country": "Taiwan",
      "countryCode": "TW",
      "fieldsetId": "taiwanFields",
      "label": {
        "en": "Taiwan",
        "zh-Hant": "台灣"
      },
      "questions": [
        {
          "key": "taiwanDays",
          "inputId": "twDays",
          "type": "integer",
          "minimum": 0,
          "maximum": "days_in_income_year",
          "prompt": {
            "en": "Taiwan tax-counted days",
            "zh-Hant": "台灣稅務計算居留天數"
          },
          "hint": {
            "en": "Exclude each arrival day; include each departure day. Use immigration records.",
            "zh-Hant": "每次入境日不計，出境日計入。請以入出境記錄為準。"
          },
          "help": {
            "en": "183 days is the resident threshold for foreign nationals. Foreign-employer pay for work in Taiwan has a separate 90-day rule.",
            "zh-Hant": "外僑的居民門檻為 183 天；境外雇主支付在台工作報酬另有 90 天規則。"
          },
          "unknownEffect": "no_taiwan_estimate",
          "citations": [
            "https://www.ntbt.gov.tw/multiplehtml/41104d3e438143c2b36deaa19b06e84b",
            "https://www.etax.nat.gov.tw/etwmain/en/announcement/alien-individual-income-tax/instructions"
          ]
        },
        {
          "key": "taiwanAlien",
          "inputId": "twAlien",
          "type": "boolean",
          "prompt": {
            "en": "I am a foreign national in Taiwan",
            "zh-Hant": "我在台灣屬於外僑身分"
          },
          "options": [
            {
              "value": "",
              "label": {
                "en": "Not sure yet",
                "zh-Hant": "尚不確定"
              }
            },
            {
              "value": "true",
              "label": {
                "en": "Yes",
                "zh-Hant": "是"
              }
            },
            {
              "value": "false",
              "label": {
                "en": "No",
                "zh-Hant": "否"
              }
            }
          ],
          "help": {
            "en": "This calculation covers foreign nationals only. Other Taiwan residency situations need a separate rule pack.",
            "zh-Hant": "此計算僅適用外僑；其他台灣居民身分須使用不同規則。"
          },
          "unknownEffect": "no_taiwan_estimate",
          "falseEffect": "outside_this_rule_pack",
          "citations": [
            "https://www.etax.nat.gov.tw/etwmain/en/announcement/alien-individual-income-tax/instructions"
          ]
        },
        {
          "key": "taiwanSingleUnder70",
          "inputId": "twSingle",
          "type": "boolean",
          "prompt": {
            "en": "Single, under 70, with no dependants",
            "zh-Hant": "單身、未滿 70 歲且無扶養親屬"
          },
          "options": [
            {
              "value": "",
              "label": {
                "en": "Not sure yet",
                "zh-Hant": "尚不確定"
              }
            },
            {
              "value": "true",
              "label": {
                "en": "Yes",
                "zh-Hant": "是"
              }
            },
            {
              "value": "false",
              "label": {
                "en": "No",
                "zh-Hant": "否"
              }
            }
          ],
          "help": {
            "en": "Confirm all three for the standard household deductions in this estimate. Other situations need a deduction review.",
            "zh-Hant": "三項皆符合時，才套用本試算的標準家庭扣除額。其他情況須另行確認扣除額。"
          },
          "visibleWhen": {
            "key": "taiwanDays",
            "operator": "gte",
            "value": 183
          },
          "unknownEffect": "household_deductions_excluded_pending_review",
          "citations": [
            "https://www.etax.nat.gov.tw/etwmain/en/announcement/alien-individual-income-tax/instructions",
            "https://www.etax.nat.gov.tw/etwmain/en/announcement/alien-individual-income-tax/exemption-deduction-table"
          ]
        },
        {
          "key": "taiwanEarlyDeparture",
          "inputId": "twEarlyDeparture",
          "type": "boolean",
          "prompt": {
            "en": "Leaving Taiwan before year-end and not returning this year",
            "zh-Hant": "將在年底前離台，且當年不再返回"
          },
          "options": [
            {
              "value": "",
              "label": {
                "en": "Not sure yet",
                "zh-Hant": "尚不確定"
              }
            },
            {
              "value": "true",
              "label": {
                "en": "Yes",
                "zh-Hant": "是"
              }
            },
            {
              "value": "false",
              "label": {
                "en": "No",
                "zh-Hant": "否"
              }
            }
          ],
          "help": {
            "en": "A departure without returning that year can affect deductions and when you must file. Unknown answers remain unconfirmed.",
            "zh-Hant": "離台且當年不再返回可能影響扣除額與申報時間。不確定的答案會保留為待確認。"
          },
          "unknownEffect": "departure_and_deduction_review",
          "citations": [
            "https://www.etax.nat.gov.tw/etwmain/en/announcement/alien-individual-income-tax/instructions"
          ]
        }
      ]
    }
  ]
}
