Skip to content

Commit

Permalink
Fix compounding to_budget
Browse files Browse the repository at this point in the history
  • Loading branch information
shall0pass committed Dec 18, 2023
1 parent 2b1d2ae commit 00bc0c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/loot-core/src/server/budget/goals/goalsSchedule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -219,14 +219,14 @@ export async function goalsSchedule(
);

if (balance >= totalSinking + totalPayMonthOf) {
to_budget = Math.round(totalPayMonthOf + totalSinkingBaseContribution);
to_budget += Math.round(totalPayMonthOf + totalSinkingBaseContribution);
} else {
const totalSinkingContribution = await getSinkingContributionTotal(
t_sinking,
remainder,
last_month_balance,
);
to_budget = Math.round(totalPayMonthOf + totalSinkingContribution);
to_budget += Math.round(totalPayMonthOf + totalSinkingContribution);
}
}
return { to_budget, errors, remainder, scheduleFlag };
Expand Down

0 comments on commit 00bc0c2

Please sign in to comment.