Giter VIP home page Giter VIP logo

xumingkuan / 1099-b-div-helper Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 0.0 587 KB

A tool set for non-resident aliens in the US convert to help report Form 1099-B by Schwab, Robinhood, Cash App, and Morgan Stanley to a format similar to Form 1040-NR Schedule NEC line 16, and Form 1099-DIV by Morgan Stanley, Schwab, and Fidelity to compute the amount to be reported on Form 1040-NR Schedule NEC line 1.

License: MIT License

Python 100.00%

1099-b-div-helper's Introduction

1099-B Helper

A tool to convert Form 1099-B by Schwab, Robinhood, Cash App, and Morgan Stanley to a .csv file similar to the format in Form 1040-NR Schedule NEC line 16 for non-resident aliens (NRAs) in the US.

Supported input:

  • 1099-B in .csv format by Schwab (e.g., 2023_Schwab_1099B.csv);
  • 1099-B in .csv format by Cash App (e.g., 2023_cash_app_report_btc.csv), only supports Bitcoin Boost and Bitcoin Sales, assuming the amount of Bitcoin at the beginning and at the end are both 0, and a FIFO cost basis method is used;
  • Realized gain/loss .csv file by Robinhood (e.g., 2023_Robinhood_gain_loss.csv);
  • Crypto account activity .csv file by Robinhood (e.g., 2023_Robinhood_crypto_activity.csv), supports transfers (e.g., Robinhood_crypto_transfers.csv), and switching between the FIFO cost basis method and tax loss harvesting (high cost when selling, low cost when transferring out);
  • A one-liner for Morgan Stanley (e.g., 2023_Morgan_Stanley_total.csv), including the proceeds and cost basis, to append one line for it (assuming no wash sales).

Usage

Edit the file names hard-coded in generate_1040NR_NEC_line16.py and then run python generate_1040NR_NEC_line16.py.

1099-DIV Helper

A tool to compute the tax-exempt interest-related dividend portion from Vanguard, Fidelity, and iShares ETFs to be subtracted from the total dividend amount before filling into Form 1040-NR Schedule NEC line 1 for non-resident aliens (NRAs) in the US from Form 1099-DIV by Morgan Stanley, Schwab, and Fidelity.

Supported input:

Please prepend the total dividend amount (Form 1099-DIV Box 1a) to the first line of each .txt file.

Usage

After that, please edit the file names hard-coded in generate_1040NR_NEC_line1.py and then run python generate_1040NR_NEC_line1.py.

Installation

The tools are portable. If you have not installed pandas, please install it by calling pip install pandas.

Disclaimer

The tools do not check errors, so the results may be wrong if some assumptions I made when implementing the tool is not satisfied. Please consult a professional tax service or personal tax advisor for further information.

1099-b-div-helper's People

Contributors

xumingkuan avatar

Stargazers

Sunny (Feiyang) Guan avatar Ziyue Qiu avatar Jiya Eerdeng avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.