-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add Federal Tax Rates and test * Lint Federal Tax Rates * Add method and poro for calculating taxes on incomes * Add tax brackets and taxed incomes to dashboard * Display taxed incomes with turbo * Update income form select box to display income type * Lint * Update test suit * Lint * Budget (#9) * Create budget template * Render budget on dashboard * Update budget with turbo * Lint * Revert "Budget (#9)" This reverts commit 050341f. * Revert "Assign variables" (#12) * Create budget template * Render budget on dashboard * Update budget with turbo * Lint * Assign variables (#10) * Add concern to build instance variables * Lint * Revert "Assign variables (#10)" This reverts commit 556a050.
- Loading branch information
Showing
13 changed files
with
152 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<div id="salary_budget_labels" class="grid grid-cols-6"> | ||
<div class="px-5 py-4 col-2"> | ||
Fixed Expense | ||
</div> | ||
|
||
<div class="px-5 py-4 col-1"> | ||
Investing | ||
</div> | ||
|
||
<div class="px-5 py-4 col-1"> | ||
Savings | ||
</div> | ||
|
||
<div class="px-5 py-4 col-1"> | ||
Guilt Free | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<div id="hourly_budget" class="py-4"> | ||
<strong>Hourly</strong> | ||
<%= render partial: "budget/budget_headings" %> | ||
<%= render partial: "shared/budget", locals: {totals: totals, income: income} %> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<div id="salary_budget" class="py-4"> | ||
<strong>Salary</strong> | ||
<%= render partial: "budget/budget_headings" %> | ||
<%= render partial: "shared/budget", locals: {totals: totals, income: income} %> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
<div class="grid grid-cols-6"> | ||
<div>Daily</div> | ||
<%= render partial: "shared/total", locals: { total: totals.total_annual_cost / 365 } %> | ||
<div>0</div> | ||
<div>0</div> | ||
<div> | ||
<%= humanized_money_with_symbol((income.total_net_income.fractional / 100) / 365 - totals.total_annual_cost / 365) %> | ||
</div> | ||
</div> | ||
|
||
<div class="grid grid-cols-6"> | ||
<div>Weekly</div> | ||
<%= render partial: "shared/total", locals: { total: totals.total_bi_weekly_cost / 2 } %> | ||
<div>0</div> | ||
<div>0</div> | ||
<div> | ||
<%= humanized_money_with_symbol((income.bi_weekly_net_income.fractional / 100) / 2 - totals.total_bi_weekly_cost / 2) %> | ||
</div> | ||
</div> | ||
|
||
<div class="grid grid-cols-6"> | ||
<div>Bi-Weekly</div> | ||
<%= render partial: "shared/total", locals: { total: totals.total_bi_weekly_cost } %> | ||
<div>0</div> | ||
<div>0</div> | ||
<div> | ||
<%= humanized_money_with_symbol((income.bi_weekly_net_income.fractional / 100) - totals.total_bi_weekly_cost) %> | ||
</div> | ||
</div> | ||
|
||
<div class="grid grid-cols-6"> | ||
<div>Monthly</div> | ||
<%= render partial: "shared/total", locals: { total: totals.total_monthly_cost } %> | ||
<div>0</div> | ||
<div>0</div> | ||
<div> | ||
<%= humanized_money_with_symbol((income.total_net_income.fractional / 100) / 12 - totals.total_monthly_cost) %> | ||
</div> | ||
</div> | ||
|
||
<div class="grid grid-cols-6"> | ||
<div>Quarterly</div> | ||
<%= render partial: "shared/total", locals: { total: totals.total_annual_cost / 4 } %> | ||
<div>0</div> | ||
<div>0</div> | ||
<div> | ||
<%= humanized_money_with_symbol((income.total_net_income.fractional / 100.0) / 4 - totals.total_annual_cost / 4) %> | ||
</div> | ||
</div> | ||
|
||
<div class="grid grid-cols-6"> | ||
<div>Annually</div> | ||
<%= render partial: "shared/total", locals: { total: totals.total_annual_cost } %> | ||
|
||
<div>0</div> | ||
<div>0</div> | ||
<div> | ||
<%= humanized_money_with_symbol(income.total_net_income.fractional.to_f / 100 - totals.total_annual_cost) %> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
<div class="px-5"> | ||
<span><strong><%= humanized_money_with_symbol(total) %></strong></span> | ||
<span><%= humanized_money_with_symbol(total) %></span> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters