B2B cross-border withholding risk
b2b_withholding_riskStandard precision: this calculator uses ordinary floating-point arithmetic, keeps no dated table of official rates, and has not yet passed our full reference-test suite. Calculate cross-border B2B consulting/software invoice tax gross-up, statutory vs DTAA bilateral tax treaty withholding rates (Form W-8BEN/W-8BEN-E), and Permanent Establishment (183-day) tax audit exposure.
Behavior: Deterministic, idempotent calculation with zero external side effects. Computes required gross invoice amount: Gross = Net / (1 - WHT_rate). Analyzes treaty tax relief savings (Statutory WHT vs Treaty WHT) and triggers high-risk Permanent Establishment alert if physical presence exceeds the 183-day international treaty threshold.
Usage Guidelines: Use when exporting services cross-border or structuring international client contracts subject to foreign withholding tax. Do not use for digital nomad individual income tax exclusion; use feie_nomad_tracker instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| daysInCountry | No | Cumulative physical days spent in client jurisdiction over a rolling 12-month period. Values over 183 trigger Permanent Establishment audit risk. | |
| treatyRatePercent | No | Reduced withholding tax rate percentage under applicable bilateral Double Tax Avoidance Agreement (DTAA) (e.g. 0, 10, 15%). | |
| invoiceNetRequired | No | Net spendable cash amount required to be landed in exporter account in USD ($). Must be positive. | |
| statutoryRatePercent | No | Foreign client country statutory withholding tax rate percentage (e.g. 30 for 30%). Default is 30.0. |