projects > go_pay_taxes.ts
1
Go pay taxes![github][live]
1
2
Web application designed to assist Ukrainian developers in
3
calculating and managing their taxes.
4
5
It provides a simple interface to input income data, either
6
manually or by uploading bank statements from monobank or
7
privatbank.
8
9
Built with modern web technologies like React and Vite, it aims
10
to make tax management straightforward for IT professionals in
11
Ukraine.
12
13
[React][TailwindCSS][Github][TypeScript][Vite]
14
16
17
const incomes = lines.map((line) => {
18
// "03.01.2023 17:08:27" => 03.01.2023
19
const date = toDate(line.split(",")[0].replaceAll('"', "").split(" ")[0]);
20
21
// cut values around currency to avoid messing with characters in 'name'
22
// 3900.41,1000.0,EUR,39.0041
23
const matches = line.match(/[\d.]+,[\d.]+,[A-Z]{3},[\d.]+/g);
24
25
const [uah, amount, currency, rate] = (matches![0] || "").split(",");
26
const tax = taxFor(Number(uah));
27
return {
28
date,
29
uah: Number(uah),
30
amount: Number(amount),
31
currency,
32
rate: Number(rate),
33
tax,
34
};
35
});
36
return incomes;
37
};
38
39
40
41
42
43
NORMAL~/oleksandr/projects/go_pay_taxes.ts.../projects/go_pay_taxes.tsmainutf-8
Enter to open · :q to quit
keys
j / kmove the cursor line, or the tree cursor
hfocus the tree; in the tree, fold or go to the parent
l / Enterin the tree, unfold or open the file
gg / Gfirst / last line
clickput the cursor on a line; on README.sh, run the session again
:qquit to the shell
:help ?this table
q / Escclose this