Skip to content

Return aggregate inflation adjusted value based on multiple deposit dates and amounts

License

Notifications You must be signed in to change notification settings

local-optimum/invisible-tax-calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Local Optimum's Inflation Tax Calculator

What is it and what does it do?

The inflation tax calculator enables users to enter deposit dates (in YYYY-MM format) and GBP amounts to create a dictionary of historical deposits. This dictionary is used to query the OECD website's historical CPI monthly inflation change for the UK. This is then used to create a table of running monthly totals modified by the monthly percentage change. The output consists of:

  • The total amount deposited (and a monthly running total)
  • The current purchasing power of this amount if held as cash
  • The total and percentage decrease in value
  • How much cash you would need to hold today to match your purchasing power at the point of deposit.

It also dsiplays a graph of your account total over time compared to the declining purchasing power of that amount. You can optionally export the full table to csv for your own analysis or reference.

Why did I make it?

This is my first independent project that did not follow a tutorial or guide. It was designed to help me consider how best to structure my code and how best to present it to a public audience. It also answered a question I was personally interested in addressing. If anyone is interested in giving me feedback on my approach or structure I would be happy to hear it.

What do I need to run it?

This code can be run in the terminal by running main.py from the project folder. It requires only a few basic libraries to run:

  • Pandas
  • Requests
  • Json
  • Datetime
  • Matplotlib

The data is pulled from this OECD site https://stats.oecd.org/Index.aspx?DataSetCode=PRICES_CPI#

About

Return aggregate inflation adjusted value based on multiple deposit dates and amounts

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages