Skip to content

Commit fd4c46d

Browse files
authored
Jczaja/revolut consolidated (#143)
* - added revolut consolidated document * - Added PLN intrests in tax documents * - consolidated parsing dates functions * - compilable version * - consolidated UT works * - Bump up version * - removed some comments * - Manual updated * - modified some test document * - decreased threshold
1 parent b834f6d commit fd4c46d

File tree

7 files changed

+443
-995
lines changed

7 files changed

+443
-995
lines changed

.github/workflows/coverage.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,4 +58,4 @@ jobs:
5858
exit 1
5959
fi
6060
env:
61-
COVERAGE_THRESHOLD: 45
61+
COVERAGE_THRESHOLD: 31

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "etradeTaxReturnHelper"
3-
version = "0.7.1"
3+
version = "0.7.2"
44
edition = "2021"
55
description = "Parses etrade and revolut financial documents for transaction details (income, tax paid, cost basis) and compute total income and total tax paid according to chosen tax residency (currency)"
66
license = "BSD-3-Clause"

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,9 @@ Project that parse e-trade and revolut account statements and Gain and Losses do
1212
3. Download all `ACCOUNT STATEMENT` and `Single Account Statement` documents
1313
b. Revolut:
1414

15-
1. Download from your Revolut mobile app "Profit and Losses" documents in CSV format in you investment account.
16-
2. Download from your Revolut mobile app Statement account documents in CSV format in saving account.
15+
1. Go to your profile
16+
2. Click Statements and documents
17+
3. Download Consolidated statement for a year you are filling your tax return form for.
1718
4. Run:
1819
1. `etradeTaxReturnHelper <your PDF documents that MAY contains dividends and/or sold transactions e.g. "*.pdf"> <Gain and Loss XLSX document>`
1920
2. Alternatively you can just run `etradeTaxReturnHelper` to have program running with GUI (graphical user interface):
Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
Summary for Savings Accounts - EUR
2+
Description,Amount
3+
Saldo początkowe,"1 234,56€"
4+
Suma wpłat,"12 345,64€"
5+
Suma wypłat,"11 111,11€"
6+
Łączna kwota zarobionych odsetek,"11,11€"
7+
Podatek ogółem,0€
8+
Opłaty ogółem,0€
9+
Saldo końcowe,0€
10+
11+
Summary for Savings Accounts - PLN
12+
Description,Amount
13+
Saldo początkowe,"11 111,11 PLN"
14+
Suma wpłat,"555 555,55 PLN"
15+
Suma wypłat,"555 555,55 PLN"
16+
Łączna kwota zarobionych odsetek,"111,11 PLN"
17+
Podatek ogółem,0 PLN
18+
Opłaty ogółem,0 PLN
19+
Saldo końcowe,"1 111,11 PLN"
20+
21+
Summary for Brokerage Account - EUR
22+
Portfolio created on 6 lis 2022
23+
24+
25+
Sells summary,Amount
26+
Wpływy brutto,"1 111,11€"
27+
Podstawa kosztowa,"1 111,11€"
28+
Zrealizowany zysk/strata brutto,"11,11€"
29+
30+
Other Income and Fees summary,Amount
31+
Dywidendy,"11,11€"
32+
Podatek potrącany u źródła,"11,11€"
33+
Kwota,11€
34+
35+
Summary for Brokerage Account - USD
36+
Portfolio created on 6 lis 2022
37+
38+
39+
Sells summary,Amount
40+
Wpływy brutto,"11 111,11$"
41+
Podstawa kosztowa,"11 111,11$"
42+
Zrealizowany zysk/strata brutto,"1 111,11$"
43+
44+
Other Income and Fees summary,Amount
45+
Dywidendy,"1 111,11$"
46+
Podatek potrącany u źródła,"111,11$"
47+
Kwota,"1 111,11$"
48+
49+
Transactions for Savings Accounts - EUR
50+
Date,Description,Money out,Money in,Balance
51+
1 sty 2024,Interest earned,,"0,26€","8 829,39€"
52+
12 kwi 2024,Interest earned,,"0,24€","6 552,57€"
53+
20 lis 2024,Withdrawing savings,"5 452,74€",,0€
54+
55+
Transactions for Savings Accounts - PLN
56+
Date,Description,Money out,Money in,Balance
57+
4 sty 2024,Interest earned,,"0,86 PLN","10 533,85 PLN"
58+
31 maj 2024,Interest earned,,"1,26 PLN","12 097,87 PLN"
59+
60+
Transactions for Brokerage Account sells - EUR
61+
Portfolio created on 6 lis 2022
62+
Date acquired,Date sold,Security name,Symbol,ISIN,Country,Qty,Cost basis,Cost basis base currency,Cost basis rate,Gross proceeds,Gross proceeds base currency,Gross proceeds rate,Gross PnL,Gross PnL base currency,Fees,Fees base currency
63+
29 lip 2024,28 paź 2024,European Union 0.8% 07/25,EU000A3K4DJ5,EU000A3K4DJ5,BE,3100,"€3,036.14","13,037.94 PLN",4.29425000441592,"€3,069.14","13,348.22 PLN",4.349175002148144,€33,310.28 PLN,€15.26,65.94 PLN
64+
9 wrz 2024,21 lis 2024,ABN AMRO Bank NV 1% 04/25,XS1218821756,XS1218821756,NL,3.8,"€3,765.20","16,097.86 PLN",4.275435002225751,"€3,793.04","16,477.91 PLN",4.344250010036551,€27.84,380.05 PLN,€18.89,81.41 PLN
65+
66+
Transactions for Brokerage Account sells - USD
67+
Portfolio created on 6 lis 2022
68+
Date acquired,Date sold,Security name,Symbol,ISIN,Country,Qty,Cost basis,Cost basis base currency,Cost basis rate,Gross proceeds,Gross proceeds base currency,Gross proceeds rate,Gross PnL,Gross PnL base currency,Fees,Fees base currency
69+
20 lis 2023,12 sie 2024,Exxon Mobil,XOM,US30231G1022,US,48.501169,"US$5,000","19,863.25 PLN",3.97265,"US$5,804.62","22,865.17 PLN",3.9391333455,US$804.62,"3,001.92 PLN",US$0.17,0.66 PLN
70+
11 cze 2024,14 paź 2024,Truist Financial Corp,TFC,US89832Q1094,US,3.63994351,US$129.94,525.08 PLN,4.0410148975,US$158.60,624 PLN,3.9344440425,US$28.66,98.92 PLN,US$0,0 PLN
71+
23 paź 2023,14 paź 2024,Amcor,AMCR,JE00BJ1F3079,JE,23.52941176,US$200,835.88 PLN,4.179405,US$265.91,"1,046.20 PLN",3.9344440425,US$65.91,210.32 PLN,US$0.01,0.03 PLN
72+
22 sie 2024,17 paź 2024,Canadian Imperial Bank of Commerce 5.144% 04/25,US13607LNF66,US13607LNF66,CA,6.4,"US$6,522.47","25,135.50 PLN",3.853679381,"US$6,567.78","26,130.41 PLN",3.978576544,US$45.31,994.91 PLN,US$32.73,128.17 PLN
73+
74+
Transactions for Brokerage Account dividends - EUR
75+
Portfolio created on 6 lis 2022
76+
Date,Security name,Symbol,ISIN,Country,Gross amount,Gross amount base currency,Gross amount rate,Withholding tax,Withholding tax base currency,Net amount,Net amount base currency
77+
26 sie 2024,Mercedes-Benz International Finance BV 2% 08/26 dividend,DE000A289XJ2,DE000A289XJ2,DE,€70.63,302.43 PLN,,€18.63,,€52,222.65 PLN
78+
79+
Transactions for Brokerage Account dividends - USD
80+
Portfolio created on 6 lis 2022
81+
Date,Security name,Symbol,ISIN,Country,Gross amount,Gross amount base currency,Gross amount rate,Withholding tax,Withholding tax base currency,Net amount,Net amount base currency
82+
4 mar 2024,Truist Financial Corp dividend,TFC,US89832Q1094,US,US$154.90,617 PLN,,US$23.24,,US$131.66,524.43 PLN
83+
21 mar 2024,Amcor dividend,AMCR,JE00BJ1F3079,JE,US$65.38,259.17 PLN,,US$0,,US$65.38,259.17 PLN
84+
17 gru 2024,EPR Properties dividend,EPR,US26884U1097,US,US$222.04,903.35 PLN,,US$33.31,,US$188.73,767.83 PLN

0 commit comments

Comments
 (0)