todo
parent
f0d9e3f666
commit
dfce352f9f
|
|
@ -1,6 +1,7 @@
|
||||||
package ana
|
package ana
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"log"
|
||||||
"maps"
|
"maps"
|
||||||
"math"
|
"math"
|
||||||
"regexp"
|
"regexp"
|
||||||
|
|
@ -43,6 +44,11 @@ func NewContributionPredictor(reg ledger.Register) Predictor {
|
||||||
}
|
}
|
||||||
|
|
||||||
func newContributionPredictor(monthlyRate map[string]ledger.Balance) Predictor {
|
func newContributionPredictor(monthlyRate map[string]ledger.Balance) Predictor {
|
||||||
|
for name, balance := range monthlyRate {
|
||||||
|
for curr, v := range balance {
|
||||||
|
log.Printf("%s/%s gains %.2f per month", name, curr, v)
|
||||||
|
}
|
||||||
|
}
|
||||||
return func(given ledger.Balances, delta time.Duration) ledger.Balances {
|
return func(given ledger.Balances, delta time.Duration) ledger.Balances {
|
||||||
month := time.Hour * 24 * 365 / 12
|
month := time.Hour * 24 * 365 / 12
|
||||||
months := float64(delta) / float64(month)
|
months := float64(delta) / float64(month)
|
||||||
|
|
|
||||||
21
todo.yaml
21
todo.yaml
|
|
@ -1,13 +1,11 @@
|
||||||
todo:
|
todo:
|
||||||
- cmd to ana
|
|
||||||
- ana/legacy_* drop
|
- ana/legacy_* drop
|
||||||
- ana/predictor for bpi or de-legacy
|
- ana/predictor for bpi or de-legacy
|
||||||
- ana/prediction from ana/predictors w/ combo tests
|
- ana/predictor.go contributions better than plain average
|
||||||
- ana/predictor.go better than plain average
|
- predictWhatIf=2023-10=AssetAccount:Cash=$=-7000 changes too much when removing 7k
|
||||||
- http://localhost:8080/bal?likeName=AssetAccount:Cash&chart=stack&predictionMonths=120&predictCompoundingInterest=AssetAccount:Cash=0.02&predictFixedGrowth=VBTLX=0.03&predictFixedGrowth=FSPSX=0.03&predictFixedGrowth=GLD=0.01&bpi=true&predictContributions=true&zoomStart=1023-10&predictWhatIf=2023-10=AssetAccount:Cash=$=-7000
|
from prinicple
|
||||||
changes too much when removing 7k from prinicple
|
- ana whatIf
|
||||||
- predictions to LINE
|
- predictions to LINE
|
||||||
- html version has fields and submit button rather than query params by hand
|
|
||||||
- html version can accept new transactions for moolah
|
- html version can accept new transactions for moolah
|
||||||
scheduled: []
|
scheduled: []
|
||||||
done:
|
done:
|
||||||
|
|
@ -41,3 +39,14 @@ done:
|
||||||
1, next .16 weight 2, rest weight 4; inverse of span and cares more about recent;
|
1, next .16 weight 2, rest weight 4; inverse of span and cares more about recent;
|
||||||
when ?predict
|
when ?predict
|
||||||
ts: Thu Oct 26 08:02:51 MDT 2023
|
ts: Thu Oct 26 08:02:51 MDT 2023
|
||||||
|
- todo: cmd to ana
|
||||||
|
ts: Fri Oct 27 08:30:22 MDT 2023
|
||||||
|
- todo: ana/prediction from ana/predictors w/ combo tests
|
||||||
|
ts: Fri Oct 27 08:30:22 MDT 2023
|
||||||
|
- todo: ana/predictor.go better than plain average
|
||||||
|
ts: Fri Oct 27 08:30:22 MDT 2023
|
||||||
|
- todo: http://localhost:8080/bal?likeName=AssetAccount:Cash&chart=stack&predictionMonths=120&predictCompoundingInterest=AssetAccount:Cash=0.02&predictFixedGrowth=VBTLX=0.03&predictFixedGrowth=FSPSX=0.03&predictFixedGrowth=GLD=0.01&bpi=true&predictContributions=true&zoomStart=1023-10&predictWhatIf=2023-10=AssetAccount:Cash=$=-7000
|
||||||
|
changes too much when removing 7k from prinicple
|
||||||
|
ts: Fri Oct 27 08:30:22 MDT 2023
|
||||||
|
- todo: html version has fields and submit button rather than query params by hand
|
||||||
|
ts: Fri Oct 27 08:30:22 MDT 2023
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue