Israeli spreadsheets

From squadcodercom/squadcoder · View interactive version

Israeli spreadsheets is an AI agent skill from the GitHub repository squadcodercom/squadcoder. Generate Excel and Google Sheets spreadsheets with Israeli tax calculations, VAT, NIS formatting, RTL setup, and Hebrew-labeled financial templates. Use when user asks about Israeli tax spreadsheets, NIS-formatted Excel files, VAT calculations, salary slip templates, arnona estimators, common Hebrew

How to use this skill

Skill file

Israeli Spreadsheets

Instructions

Step 1: Set Up Python Environment

Install openpyxl:

pip install openpyxl

Step 2: Israeli Financial Constants

Step 3: Tax Calculation Functions

Progressive (marginal) tax calculation with credit point deduction. Use Python Decimal for precision.

Step 4: Formatted Workbooks

Set ws.sheet_view.rightToLeft = True for RTL sheets. NIS format: '#,##0.00 "₪"'

Step 5: Templates

The bundled scripts/generate_spreadsheet.py produces three RTL Hebrew templates via --template {invoice,salary,arnona} --output FILE.xlsx:

Step 6: Google Sheets (RTL and ILS)

Many users work in Google Sheets rather than Excel. For Hebrew worksheets:

Step 6.5: Common Israeli Formulas

Reusable formulas that match the constants above. They work identically in Excel and Google Sheets unless noted.

VAT (18%) inside one cell:

Net to gross:                  =A1*1.18
Gross to net:                  =A1/1.18
VAT amount on a VAT-inclusive price: =A1-A1/1.18    (or =A1*0.18/1.18)
VAT amount on a VAT-exclusive price: =A1*0.18

NIS currency format string (Excel custom format, symbol after the number per Israeli convention):

#,##0.00 [$₪-he-IL]

The shorter #,##0.00 "₪" form also works; the [$₪-he-IL] variant carries the Hebrew/Israel locale tag so the symbol survives a re-save by a user whose Excel runs in another locale.

Progressive income tax (2026 brackets, annual income in A1, residents only) -- Google Sheets / Excel 365:

=LET(inc, A1, credit, 2.25*2904,
  MAX(0,
    MIN(inc,84120)*0.10
    + MAX(0, MIN(inc,120720)-84120)*0.14
    + MAX(0, MIN(inc,228000)-120720)*0.20
    + MAX(0, MIN(inc,301200)-228000)*0.31
    + MAX(0, MIN(inc,560280)-301200)*0.35
    + MAX(0, MIN(inc,721560)-560280)*0.47
    + MAX(0, inc-721560)*0.50
    - credit))

The LET helper keeps the formula readable and runs once instead of repeating A1 seven times. For older Excel versions, expand LET into separate cells.

Bituach Leumi + health tax (employee side, monthly salary in A1):

Bituach Leumi:  =MIN(A1,7122)*0.004 + MAX(0, MIN(A1,49030)-7122)*0.07
Health tax:     =MIN(A1,7122)*0.031 + MAX(0, MIN(A1,49030)-7122)*0.05

Income above the 49,030 NIS/month ceiling is not insurable, so both formulas cap at that figure.

Hebrew day of week from a Gregorian date in A1 (locale-aware):

=TEXT(A1,"dddd")

Returns "ראשון", "שני", etc., when the workbook locale is he-IL. Outside an Israeli locale, fall back to =CHOOSE(WEEKDAY(A1,1),"ראשון","שני","שלישי","רביעי","חמישי","שישי","שבת").

Israeli holidays via Hebcal: Hebcal does not have a direct spreadsheet function. Either:

Step 7: Recommended MCP Servers

When building financial spreadsheets, these MCP servers from the directory provide live data so figures stay current:

Hebrew/Jewish date handling: openpyxl writes only Gregorian dates. To show a Hebrew date (e.g., "כ״ה אדר תשפ״ו") alongside the Gregorian one, compute it via the hebcal MCP or a library like pyluach, then write it as a text string in its own cell. Do not try to format a Gregorian date cell as Hebrew, the conversion has to happen before the value reaches the sheet.

Examples

Example 1: Create an Israeli Payroll Calculator

User says: "Build a payroll Excel sheet for an Israeli employee"

Actions:

  1. Create RTL workbook with Hebrew headers
  2. Add income tax brackets (2026 rates after Amendment 288: 10%, 14%, 20% to 228K, 31% to 301.2K, 35%, 47%, 50%)
  3. Calculate Bituach Leumi (0.4%/7% employee-side thresholds), health tax (3.1%/5%)
  4. Include pension (6.0% employee + 6.5% employer, plus 6.0% severance by employer) and keren hishtalmut
  5. Apply Section 45a tax credit (35% of employee-side pension deposit) against the income tax line
  6. Format all amounts as NIS with Hebrew labels

Result: Complete Israeli payroll calculator with net salary computation that reflects the 45a pension credit

Example 2: Generate Israeli Invoice Template

User says: "Create a tax invoice template in Hebrew with VAT calculation"

Actions:

  1. Set up RTL Excel with Hebrew column headers
  2. Add business details fields (osek murshe number, address)
  3. Include line items with quantity, unit price, subtotal
  4. Calculate 18% VAT, display total in NIS
  5. Add invoice number and Hebrew date fields

Result: VAT-compliant Hebrew invoice spreadsheet template

Bundled Resources

Scripts

References

Gotchas

Reference Links

| Source | URL | What to Check |

|--------|-----|---------------|

| Israeli Tax Authority | https://www.gov.il/en/departments/israel_tax_authority | Income tax brackets, credit points, VAT rate |

| Bituach Leumi | https://www.btl.gov.il/English%20Homepage/Pages/default.aspx | Social security and health tax rates |

| openpyxl Documentation | https://openpyxl.readthedocs.io/en/stable/ | Writing XLSX files with formatting from Python |

| Bank of Israel | https://www.boi.org.il/en/ | Exchange rates, monetary policy, CPI for indexation |

| Excel RTL Worksheet (Microsoft Learn) | https://learn.microsoft.com/en-us/office/vba/api/excel.worksheet.displayrighttoleft | Sheet direction and RTL rendering |

Troubleshooting

Error: "NIS symbol appears on wrong side of number"

Cause: Excel locale not set for Hebrew/Israel

Solution: Use format string #,##0.00 ₪ (symbol after number) for Israeli convention, or set the workbook locale to he-IL.

Error: "Hebrew column headers display as question marks"

Cause: Workbook not saved with UTF-8 encoding or font doesn't support Hebrew

Solution: Ensure the workbook uses a Unicode-compatible font (like David, Heebo, or Arial). When using openpyxl, Hebrew strings are automatically UTF-8 encoded.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.