Skip to content

Commit

Permalink
Update young entreprenuer discount amount
Browse files Browse the repository at this point in the history
  • Loading branch information
hamitaksln committed Nov 22, 2023
1 parent d1173b6 commit dbebbae
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/TaxCalculator.jsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { useState } from "react"
import { FormProvider, useForm, useFormContext } from "react-hook-form"
import { NumericFormat } from "react-number-format"
import { INCOME_TYPES, TAX_BRACKETS } from "../constants"
import { INCOME_TYPES, TAX_BRACKETS, YOUNG_ENTREPRENEUR_DISCOUNT } from "../constants"
import { getTextWidth } from "../utilities"
import { Footer } from "./Footer"
import { TaxSummary } from "./TaxSummary"
Expand Down Expand Up @@ -73,7 +73,7 @@ const TaxForm = () => {
let textBase = multipliedIncome - multipliedExpense

if (data?.isYoungEntrepreneur) {
textBase = textBase - 75_000
textBase = textBase - YOUNG_ENTREPRENEUR_DISCOUNT
}

if (data.isSoftwareExport) {
Expand Down
2 changes: 2 additions & 0 deletions src/constants/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,4 +68,6 @@ export const TAX_BRACKETS = {
]
}

export const YOUNG_ENTREPRENEUR_DISCOUNT = 150_000

export const DIGIT_REGEX = /^[\d]+$/

0 comments on commit dbebbae

Please sign in to comment.