Code Monkey home page Code Monkey logo

etoro-accounting's Introduction

Etoro-accounting

Etoro tax calculation - helps in calculating the income tax you have to pay after your earnings on Etoro. Implemented for Hungarian tax law, but easily expandable.

How to run it

  1. Download your Etoro balance sheet from the Etoro website (xslx), for any time period you want
  2. Run the app java hu.tomosvari.etoro.EtoroCalculator /path/to/etoro.xlsx or ./gradlew run --args="/path/to/etoro.xlsx"
  3. On the console the app will output some stats and the tax you have to pay

Tax law modules

DISCLAIMER - I am no accountant, I implemented these modules to my best knowledge, but by using this app all responsibility is yours in case the code is not compliant with the laws in any way.

Hungary

After your Etoro earnings you have to pay 15% income tax. Transactions on your Etoro account should count as "Ellenorzott tokepiaci ugylet" by the rules in this case you have to pay tax after the net income (income - losses) counting all the closed transactions. The code goes through all closed transactions, exchanges the USD closing values to HUF using the MNB (Magyar Nemzeti Bank, Hungarian National Bank) daily mean exchange rate for the closing day obtained from a publicly available MNB API. After this it calculates the net income and the 15% you have to pay as tax. The main advatage of this module is the currency exchange as exchanging all the closing values to HUF at the given MNB rate for that day would be difficult manually. The code does not calculate the "SZOCHO" that you may have to pay after the dividents on your stock.

etoro-accounting's People

Contributors

timester avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.