README.md

Calculate your tax easily, and get feedback on how to optimize your tax

Income from stock holdings outside of retirement savings accounts is taxed with two different tax rates, 27 percent and 42 percent respectively, depending on which tax bracket the income falls into.

This package allows you to easily import data from Nordnet portfolio accounts. It then automatically calculates your total taxable income, and provides advice on actions to take to optimize the long term taxation on your income from stocks. In order to optimize the tax rate, the income in the lowest tax bracket should be maximized. Conversely, income in the highest tax bracket should be minimized.

How it works

First step is to export the entire transaction history from your Nordnet portfolio account. Then specify the file path for the transactions file.

nordnet <- "transaktionsfil.csv"
degiro <- "Account.csv"

Now with a single function call, calculate your taxable income for every year in the transactions history:

devtools::install_github("atmdv/CalcYourTax", quiet=TRUE)
library(CalcYourTax)
tax_income <- calcyourtax(nordnet=nordnet, degiro=degiro)

| Year | Profits| Dividends| Tax Income| Bracket limit| How to optimize | Amount| |:----:|--------:|----------:|-----------:|--------------:|:----------------|-------:| | 2016 | 10,819| 9,341| 20,160| 50,600| Realize Gains | 30,440| | 2017 | 21,878| 11,862| 33,739| 51,700| Realize Gains | 17,961| | 2018 | -885| 43,644| 42,760| 52,900| Realize Gains | 10,140|

So in each of the previous three years I should have realized more gains in order to maximize my income in the lowest tax bracket. Too bad I didn't have this tool handy!

To-do:



atmdv/CalcYourTax documentation built on May 21, 2019, 2:29 a.m.