uncap prediction months because wheeee
This commit is contained in:
@@ -81,18 +81,13 @@ func main() {
|
|||||||
bpis := maps.Clone(bpis)
|
bpis := maps.Clone(bpis)
|
||||||
|
|
||||||
// MODIFIERS
|
// MODIFIERS
|
||||||
if predictionMonths, err := strconv.ParseInt(r.URL.Query().Get("predictionMonths"), 10, 8); err == nil && predictionMonths > 0 {
|
if predictionMonths, err := strconv.ParseInt(r.URL.Query().Get("predictionMonths"), 10, 16); err == nil && predictionMonths > 0 {
|
||||||
predictionDuration := time.Hour * 24 * 365 / 12 * time.Duration(predictionMonths)
|
predictionDuration := time.Hour * 24 * 365 / 12 * time.Duration(predictionMonths)
|
||||||
if r.URL.Query().Get("predictContributions") != "" {
|
if r.URL.Query().Get("predictContributions") != "" {
|
||||||
register, err = ledger.RegisterWithContributionPrediction(register, predictionDuration)
|
register, err = ledger.RegisterWithContributionPrediction(register, predictionDuration)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
panic(err)
|
panic(err)
|
||||||
}
|
}
|
||||||
for _, name := range register.Names() {
|
|
||||||
for _, d := range register.Dates() {
|
|
||||||
log.Printf("%s | %s | %+v", name, d, register[d][name])
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
for _, nameRate := range r.URL.Query()["predictCompoundingInterest"] {
|
for _, nameRate := range r.URL.Query()["predictCompoundingInterest"] {
|
||||||
name := strings.Split(nameRate, "=")[0]
|
name := strings.Split(nameRate, "=")[0]
|
||||||
|
|||||||
Reference in New Issue
Block a user