This small binary could calculate your FOP 5% taxes, taking incomes in currency you need.
- check out latest release for binaries
go get -u github.com/alex-popov-tech/go_pay_taxes
- At needed date ( you can signup in Taxer for notifications ) you go grab reports for quarter in your bank app.
- Using data from there, create/fill json/yaml like in example
- Run binary passing your file's path there
./go_pay_taxes ./incomes.json
# OR
./go_pay_taxes ./incomes.yaml
[
{ "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
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.