kaskra / FineWallet

A simple expense and income management app.
MIT License
1 stars 0 forks source link

FEATURE REQUEST: Spending prediction #19

Closed kaskra closed 5 years ago

kaskra commented 5 years ago

The user should be able to see how much money he/she has at the end of month if he/she keeps the current behaviour.

Do after #18.

kaskra commented 5 years ago

Now that #18 is done, i'll work on this one.

Plan

Switch to spending prediction for that month. User sees a graph with his/her current expenses, added up for every day. The part for future days is dashed and linear prediction of the average of past days. A second line will show the monthly available budget in red. After the two lines have crossed the prediction graph will be displayed in red too.

kaskra commented 5 years ago

Update

With commit 0b696adfc4c4d36f3893e671ab9bb6fb48640751 most of the functionality was finished. Now there is just some reworking/refactoring of the prediction function to do.

Right now, the prediction is just a linear function by using the gradient of the past days of the month. But the prediction should account for recurring transactions in the future and add them at the right dates. When no transactions is done on one day, the simple linear function is applied.

kaskra commented 5 years ago

Update (Done)

In commit a9861f022487664246000938b34346710f822ccb, the new prediciton function was introduced. It now uses the known future recurring transactions to improve the prediction.