Skip to content

msuhov/fisc-tools

Repository files navigation

Tax Converter

A web-based tool that automates tax reporting for Moldovan investors using Interactive Brokers. Converts USD trades to MDL, calculates capital gains tax, and generates Excel reports ready for FISC submission.

Live Demo: https://fisc-tools.vercel.app

Features

  • USD to MDL Conversion — Automatically converts trades using official NBM (National Bank of Moldova) exchange rates
  • Tax Calculation — Calculates 6% Moldovan capital gains tax on each closed position
  • Excel Export — Generates formatted Excel files matching the tax authority requirements
  • Privacy First — All processing happens in your browser; your financial data never leaves your device

How It Works

  1. Upload your Interactive Brokers Activity Statement (PDF format)
  2. The tool parses your trades and matches them with historical NBM exchange rates
  3. Capital gains are calculated for each closed position using FIFO method
  4. Download the Excel report with all calculations ready for tax filing

Getting Your IB Activity Statement

  1. Log in to your Interactive Brokers account
  2. Go to Performance & ReportsStatements
  3. Select Activity statement type
  4. Choose the Annual period for the tax year you need
  5. Set format to PDF
  6. Click Run and download the generated PDF

For Developers

Prerequisites

  • Node.js 18+
  • npm

Installation

git clone https://github.com/msuhov/fisc-tools.git
cd fisc-tools
npm install

Running Locally

npm start

The app will be available at http://localhost:4200

Building for Production

npm run build

Updating Exchange Rates

The exchange rates are bundled with the app. To update them with newer rates from NBM:

Step 1: Download rates from NBM

  1. Go to NBM Official Exchange Rates
  2. Select USD currency and the date range you need
  3. Export the data as Excel (.xlsx)

Step 2: Convert to JSON

npm run generate-rates path/to/downloaded-rates.xlsx

This generates a usd-mdl-rates.json file in the current directory.

Step 3: Update the app

cp usd-mdl-rates.json libs/exchange-rates/src/lib/data/usd-mdl-rates.json
npm run build

License

MIT

About

A web-based tool that automates tax reporting for Moldovan investors using Interactive Brokers.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors