Skip to content

Commit fe489d4

Browse files
committed
Change good-month saving wording
1 parent aa041e2 commit fe489d4

3 files changed

Lines changed: 6 additions & 5 deletions

File tree

‎CHANGELOG.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Change the pace line to follow the daily budget
44
* Change the savings streak to match the pace line
55
* Fix web month status counting yearly bills monthly
6-
* Add saving in good months to the daily budget
6+
* Add trimming of big daily budgets
77
* Add a daily budget cap
88
* Fix Settings scrolling sideways on phones
99
* Fix AI status heading spacing

‎docs/features.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
### Dashboard
44

55
- Daily budget over a 14-day window of the current balance, shortened to the next salary plus one spare day when payday is sooner
6-
- Save in good months: above a level of your choosing, half of the extra daily budget is held back as the month's saving
6+
- Trim big daily budgets: above an amount of your choosing, you get the amount plus half of the rest; the other half stays in the account
77
- Daily budget cap: the daily budget never shows more than the cap, the rest is held back as the month's saving
88
- Must-pay priority obligations always subtracted from budget regardless of mode
99
- Bill, debt, and investment payments excluded from discretionary daily spending

‎src/app/(app)/settings/page.tsx‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ export default function SettingsPage() {
7272
const [goodMonthSaving, setGoodMonthSaving] = useState(false);
7373
const [goodMonthSaved, setGoodMonthSaved] = useState(false);
7474
const [goodMonthLevel, setGoodMonthLevel] = useState("50");
75+
const trimLevel = Math.round(Number(goodMonthLevel) || 0);
7576
const [dailyCapEnabled, setDailyCapEnabled] = useState(false);
7677
const [dailyCap, setDailyCap] = useState("");
7778
const [dailyCapSaved, setDailyCapSaved] = useState(false);
@@ -1005,7 +1006,7 @@ export default function SettingsPage() {
10051006
</p>
10061007
</div>
10071008
<div className="form-field">
1008-
<Label>{locale === "fi" ? "Säästä hyvinä kuukausina" : "Save in good months"}</Label>
1009+
<Label>{locale === "fi" ? "Leikkaa isoja päiväbudjetteja" : "Trim big daily budgets"}</Label>
10091010
<div className="settings-row">
10101011
<Switch
10111012
checked={goodMonthSaving}
@@ -1036,8 +1037,8 @@ export default function SettingsPage() {
10361037
</div>
10371038
<p className="settings-help">
10381039
{locale === "fi"
1039-
? `Kun päiväbudjetti nousisi yli ${goodMonthLevel || 0} € päivässä, siitä näytetään vain puolet ylimenevästä osasta. Loput jää tilille kuukauden säästöksi. Tiukkoina aikoina säästöä käytetään vain sen verran, että budjetti pysyy tällä tasolla.`
1040-
: `When the daily budget would rise above ${goodMonthLevel || 0} € a day, only half of the extra is shown. The rest stays in the account as the month's saving. In a tight stretch it is used only to keep the budget at this level.`}
1040+
? `Jos päiväbudjetti olisi yli ${trimLevel} €, saat ${trimLevel} € ja puolet sen ylittävästä osasta. Esimerkki: päiväbudjetti olisi ${trimLevel + 40} €. ${trimLevel + 40} − ${trimLevel} = 40, puolet siitä on 20, joten näet ${trimLevel + 20} €. Käyttämättä jäävät 20 € jäävät tilille.`
1041+
: `If your daily budget would be above ${trimLevel} €, you get ${trimLevel} € plus half of what's above it. Example: the daily budget would be ${trimLevel + 40} €. ${trimLevel + 40} − ${trimLevel} = 40, half of that is 20, so you see ${trimLevel + 20} €. The 20 € you don't get to spend stays in the account.`}
10411042
</p>
10421043
</div>
10431044
<div className="form-field">

0 commit comments

Comments
 (0)