go_pay_taxes

command module
v0.0.0-...-26bcd34 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 15, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

README

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

https://user-images.githubusercontent.com/21224705/238207208-34e63901-f71d-47bb-abff-bb729f1363c6.mp4

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL