You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Current: Payment Per Period(PMT) is currently same through out the investment period. Suggestion: Payment Per Period have a provsion to be stepped up by certain percentage(10% for eg.) yearly/monthly. Changes: Monthly Investment needed, Goal Progress timeline & Goal Monthly Investment timeline
I was able to add step up rate in the Progress timeline by tweaking the project() function (SS👇🏼).
But I'm not able to calculate the PMT(solvePMTOrNper()) if step up rate is given. I tried:
Tweaking around financial lib.
Binary Search to match the target amount with low = 0, high = Non Step Up PMT.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Current: Payment Per Period(PMT) is currently same through out the investment period.
Suggestion: Payment Per Period have a provsion to be stepped up by certain percentage(10% for eg.) yearly/monthly.
Changes: Monthly Investment needed, Goal Progress timeline & Goal Monthly Investment timeline
I was able to add step up rate in the Progress timeline by tweaking the project() function (SS👇🏼).
But I'm not able to calculate the PMT(solvePMTOrNper()) if step up rate is given. I tried:
Any help/suggestions would be appreciated.
Ref:
paisa/src/lib/goals.ts
Lines 58 to 96 in 26fb761
https://github.com/lmammino/financial/blob/main/src/index.ts#L133-L149
Beta Was this translation helpful? Give feedback.
All reactions