Coder Social home page Coder Social logo

finances's Introduction

Finances

Warning: This project may be out of date or inaccurate. It does not attempt to provide financial advice. Use it at your own risk!

This project provides a Python library and CLI that you can use for analyzing and simulating finances. It is designed for dealing with United States financial simulation and law. It includes tax estimation functionality and financial simulation functionality.

Currently, tax rates are available for tax years 2021 and 2022, with 2023 and 2024 brackets currently being added.

Prerequisites

You will need:

  • Git (to clone this repository)
  • Python >= 3.8 (to use this library and CLI)
  • Python support for virtual environments (to run the provided scripts)
  • POSIX-compatible sh (to run the provided scripts)

Quick Start

It's recommended (but not required) to install and run this library in a virtual environment.

To run an example program that uses this library (this will automatically create and use a virtual environment):

$ git clone https://github.com/thomasebsmith/finances.git
$ cd finances
$ . ./scripts/venv.sh
$ pip install .
$ finances

To run this library's unit tests (this will automatically create a virtual environment and install test dependencies in it):

$ git clone https://github.com/thomasebsmith/finances.git
$ cd finances
$ ./scripts/test.sh

To lint this repository's code (this will automatically create a virtual environment and install linting dependencies in it):

$ git clone https://github.com/thomasebsmith/finances.git
$ cd finances
$ ./scripts/lint.sh

Roadmap

By v1.0, this project will contain a complete financial utilities and simulation library and CLI.

v0.1 (released 2022-07-17)

  • General financial utility classes
  • Basic tax computations
  • Placeholder simulation utility
  • Basic testing and linting

v0.2 (in progress — planned release around 2024-06-01)

  • Correct use of tax terminology (AGI vs. MAGI vs. taxable income, deductions vs. adjustments) in API
  • Basic financial simulations (inflation, investment returns, etc.)
  • Probabilistic variable ranges and distributions
  • Confidence intervals based on variable distributions over time
  • Account abstraction (with ability to transfer among accounts and ability to store variable distributions)
  • Thorough unit testing of basic types and simulations

v0.3 (in planning stages — planned release in late 2024)

  • Detailed historical tax calculations (United States only)
  • Alternative minimum tax support (United States only)
  • Financial simulations based on historical market and inflation data (United States only)
  • Deduction and adjustment eligibility checking (United States only)

v0.4

  • Simulation performance optimizations
  • Historical prediction accuracy analysis and adjustments
  • Accuracy checks against tax law and tax forms

Future Ideas

In future versions after v0.4, this project could include:

  • A tax calculation GUI (with interactive explanations and tax strategy analysis)
  • A simulation GUI (including visualizations of possible outcomes, confidence intervals, tables, charts, etc.)
  • An optimizer for desired financial outcomes
  • Simulation data and tax calculations for locations outside the United States
  • Data about other types of investment assets (commodities, real estate, derivatives, etc.) integrated into the predictor and optimizer
  • Historical and predictive risk premium analysis based on different investment strategies and risk-free rates of return

Contributing

To contribute to this project, please open an issue if one does not exist for your desired feature or bug fix. Then, feel free to comment that you are working on that issue and create a corresponding PR. Your PR will be reviewed and hopefully approved for merge when it is ready.

Contributions to this project will be licensed under the MIT License.

License

This project is licensed as open source software under the MIT License. See LICENSE for details.

Copyright

This project was originally created by Thomas Smith and is copyright © 2022-2024 Thomas Smith.

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.