mattjgalloway / cgtcalc

A UK capital gains tax calculator written in Swift
MIT License
94 stars 16 forks source link

Expenses not accounted for in calculation #13

Open dwin999 opened 1 year ago

dwin999 commented 1 year ago

Given the following transactions:

BUY 26/05/2022 SomeCompany 3063 3.21570356 49.25 BUY 26/05/2022 SomeCompany 3067 3.21095859 49.24 BUY 26/05/2022 SomeCompany 3067 3.21106945 49.24 BUY 26/05/2022 SomeCompany 3068 3.20996741 49.24 BUY 26/05/2022 SomeCompany 3067 3.21085099 49.24 BUY 26/05/2022 SomeCompany 3069 3.20900945 49.24 SELL 27/05/2022 SomeCompany 401 3.28127182 0 SELL 27/05/2022 SomeCompany 3000 3.28126 0 SELL 27/05/2022 SomeCompany 3000 3.28034333 0 SELL 27/05/2022 SomeCompany 3000 3.28126 0 SELL 27/05/2022 SomeCompany 3000 3.28126 0 SELL 27/05/2022 SomeCompany 3000 3.28484333 0 SELL 27/05/2022 SomeCompany 3000 3.28484333 0

Stamp Duty Paid: 295.45

Total Cost: 59385.82 + 295.45 = 59681.72

Total Disposal = 60397.22

Total Disposal - Total Cost = 715.95

CGT output estimates 1101 gain, so is not removing the stamp duty allowable costs:

1) SOLD 18401 of SomeCompany on 27/05/2022 for GAIN of £1011
Matches with:
  - SECTION 104: 18401 at cost basis of £3.22731
Calculation: (18401 * 3.28227922231509157111026574642682462909 - 0) - ( (18401 * 3.22731) ) = 1011
mattjgalloway commented 11 months ago

Maybe I'm being dumb, but when I add up all your costs there, it comes to £59090.37 for me. With the stamp duty added on, it's £59385.82.

I think in your calculations you've added on stamp duty twice?