/go_pay_taxes

Small pet project to calculate taxes for FOP in Ukraine

Primary LanguageGoApache License 2.0Apache-2.0

Go pay taxes

This small binary could calculate your FOP 5% taxes, taking incomes in currency you need.

Installation

  • check out latest release for binaries
  • go get -u github.com/alex-popov-tech/go_pay_taxes

How to use

  1. At needed date ( you can signup in Taxer for notifications ) you go grab reports for quarter in your bank app.
  2. Using data from there, create/fill json/yaml like in example
  3. Run binary passing your file's path there
./go_pay_taxes ./incomes.json
# OR
./go_pay_taxes ./incomes.yaml

File examples

[
  { "date": "10.01.2023", "currency": "USD", "amount": 1000 },
  { "date": "31.03.2023", "currency": "EUR", "amount": 1000 }
]
- date: "10.01.2023"
  currency: "USD"
  amount: 1000
- date: "31.03.2023"
  currency: "EUR"
  amount: 1000

Output example

Reading, parsing, validating file ./tmp.json...done.
=====INCOMES=====
[10.01.2023] 1000 USD * 36.5686 = 36568.6
[31.03.2023] 1000 EUR * 39.7812 = 39781.2
=====INCOMES=====
36568.6 + 39781.2 = 76349.8
To pay: 76349.8 / 5% = 3817.49

Where 76349.8 is the value you need to declare, and 3817.49 is amount of taxes you need to pay.

Demo

go_pay_taxes.mp4