Bank Balance Graph
Plotting balance over time with Starling Bank's CSV export.
Features:
- combine multiple CSVs into one graph (Starling's maximum export is 1 year)
- show trend line for past N days
- show average daily spending/earning for trend line period
- work out estimated
TUZM(Time Until Zero Money) orTUDM(Time Until Doubled Money)

How to use
Requirements: Python (with matplotlib, numpy)
Export CSV with Starling.
secrets.py keeps track of any savings accounts, assuming that money is only spent from the main current account (i.e., if it's sent to a savings account, it's still being saved). Occasionally, the numbers will be out of whack as the savings accounts will generate interest. You can keep this up to date by editing the start amount in secrets.py, which will sort of look like the interest amount has always existed. this is fine.
cp secrets.example.py secrets.py && nano $_
py -m venv env
source env/bin/activate
pip install -r requirements.txt
py .\plot.py --trendline 90 export*202{2,3,4,5,6}.csv
Notes
This could work with other banks. I don't know, because I don't have other banks. In principle, if their CSVs have a "date" and "balance" column then it will work. You will have to change this code to use the right CSV column and date format.
https://github.com/alifeee/banking/blob/7e4bc1468165685d85f38c9d2ab1037f24209ce2/plot.py#L32-L33
