Skip to content

Fix tax calculation threshold and improve discount calculation logic#9

Open
henryhabib wants to merge 1 commit into
masterfrom
hh-cat-20260224
Open

Fix tax calculation threshold and improve discount calculation logic#9
henryhabib wants to merge 1 commit into
masterfrom
hh-cat-20260224

Conversation

@henryhabib
Copy link
Copy Markdown
Owner

This pull request makes changes to the tax calculation and discount calculation logic in the app.py file of the personal finance tracker. The main updates adjust the tax bracket threshold and revise the way discounts are calculated.

Tax calculation changes:

  • The lowest tax bracket threshold in calculate_tax was reduced from 10,000 to 5,000, so incomes up to 5,000 are now taxed at the lowest rate.

Discount calculation changes:

  • The logic in calculate_discount was changed from a direct percentage calculation to decrementing the price by 1% for each percentage point of the discount rate, potentially affecting the accuracy of the calculation for fractional discount rates.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 1 out of 1 changed files in this pull request and generated no comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants