You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Or you may want to move it to a directory that is in your system's `PATH`:
79
+
80
+
```
81
+
$ chmod +x dime-your-os
82
+
$ mv dime-your-os /usr/local/bin/dime
83
+
```
84
+
85
+
You can now run `dime` from anywhere instead of `php dime-your-os`.
86
+
61
87
### Composer
62
88
63
-
> **Note**
89
+
> [!IMPORTANT]
64
90
> Requires [Composer](https://getcomposer.org/) as well as PHP 8.2 and the [BCMath](https://www.php.net/manual/en/book.bc.php) extension.
65
91
66
92
You can instal Dime via [Composer](https://getcomposer.org):
@@ -93,7 +119,7 @@ $ source ~/.bash_profile
93
119
94
120
### PHAR (Linux / Unix / macOS)
95
121
96
-
> **Note**
122
+
> [!IMPORTANT]
97
123
> Requires PHP 8.2 and the [BCMath](https://www.php.net/manual/en/book.bc.php) extension.
98
124
99
125
<!-- phar -->
@@ -117,7 +143,7 @@ You can now run `dime` from anywhere instead of `php dime`.
117
143
118
144
### Docker
119
145
120
-
> **Note**
146
+
> [!IMPORTANT]
121
147
> Requires [Docker](https://www.docker.com/) and sh or Bash.
122
148
123
149
[Download this shell script](/.docker/dime.sh) and use it straight away:
@@ -157,7 +183,7 @@ $ dime process transactions.csv
157
183
158
184
It will validate and process each transaction and display the corresponding tax figures or report any errors.
159
185
160
-
> **Note**
186
+
> [!NOTE]
161
187
> You will need to run this command every time you update the spreadsheet.
162
188
163
189
See the [Spreadsheet format](#spreadsheet-format) section to learn how to report your transactions.
@@ -239,7 +265,7 @@ The market value is at the centre of Dime's calculation rules so it is crucial t
239
265
240
266
When the transaction includes a sent asset (and is not a transfer – transfers don't need a market value), you must use the sent asset's market value as the transaction's market value, _based on the reported sent quantity_ (see [Sent quantity](#sent-quantity) section below to learn how to report it correctly).
241
267
242
-
> **Note**
268
+
> [!IMPORTANT]
243
269
> Be particularly vigilant when selling an asset for some fiat currency. It is tempting to use the received fiat amount as the market value, but if a fee was taken, the actual market value is the received amount plus the fee's market value.
244
270
245
271
When the transaction does not include a sent asset (i.e. `receive` transactions), the transaction's market value is the received asset's market value.
@@ -255,7 +281,7 @@ Keeping in mind that when a transaction includes a sent asset, its market value
255
281
* If using a decentralised protocol, use the value reported by the corresponding blockchain's explorer (see the value between brackets in the _Tokens Transferred_ section [here](https://etherscan.io/tx/0x2c9310e04c01e1329973c205cc6f3d3a7be3237ed09b968faef7ed85d9dfea65), for instance);
256
282
* If none of the above applies, look up the asset on price-tracking websites such as [CoinMarketCap](https://coinmarketcap.com/) or [CoinGecko](https://www.coingecko.com/).
257
283
258
-
> **Note**
284
+
> [!TIP]
259
285
> If any of the above amounts are expressed in a foreign currency, use HMRC's [exchange rates](https://www.gov.uk/government/publications/hmrc-exchange-rates-for-2023-monthly"HMRC exchange rates for 2023: monthly") to convert them to pound sterling.
260
286
261
287
Sometimes, while the transaction includes a sent asset, its price isn't tracked anywhere. In that case, use the received asset's market value plus the fee's market value, if you paid for that fee.
@@ -280,7 +306,7 @@ The quantity sent. For NFTs, that would be `1`.
280
306
281
307
Be as precise as possible and report all available decimal places.
282
308
283
-
> **Note**
309
+
> [!IMPORTANT]
284
310
> When the sent asset and the [fee](#fee)'s currency are the same (e.g. GBP in both cases), _and the fee's quantity was deducted from the sent quantity_, the sent quantity must exclude the fee's quantity.
285
311
> * Example #1: If you send £50 to an exchange and spend it all in a transaction that incurs a £0.50 fee, the sent quantity is 49.5.
286
312
> * Example #2: If you swap 1 bitcoin for 10 ethers on an exchange and the transaction incurs a BTC 0.01 fee, the sent quantity is 0.99.
@@ -322,7 +348,7 @@ Different values must be used depending on the context:
322
348
323
349
The reason for the latter is that exchanges usually estimate how much the fee will be and charge that estimate. This amount is almost always different from the actual fee, but that's the amount you will be charged anyway.
324
350
325
-
> **Note**
351
+
> [!TIP]
326
352
> Be sure not to report fees that you didn't pay for. For instance, if you received an airdrop that was sent by the token issuer and the transaction includes a fee, the issuer paid for that fee, not you, so you don't have to report it.
0 commit comments