austax: Fix fencepost error in HELP repayment rates
This commit is contained in:
parent
ef711f1828
commit
e25855450c
@ -78,7 +78,7 @@ def study_loan_repayment(year, taxable_income, rfb_grossedup):
|
|||||||
repayment_income = taxable_income + rfb_grossedup
|
repayment_income = taxable_income + rfb_grossedup
|
||||||
|
|
||||||
for upper_limit, rate in repayment_rates[year]:
|
for upper_limit, rate in repayment_rates[year]:
|
||||||
if upper_limit is None or repayment_income.quantity <= upper_limit * (10**AMOUNT_DPS):
|
if upper_limit is None or repayment_income.quantity < upper_limit * (10**AMOUNT_DPS):
|
||||||
return Amount(rate * repayment_income.quantity, reporting_commodity())
|
return Amount(rate * repayment_income.quantity, reporting_commodity())
|
||||||
|
|
||||||
@assert_aud
|
@assert_aud
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# DrCr: Web-based double-entry bookkeeping framework
|
# DrCr: Web-based double-entry bookkeeping framework
|
||||||
# Copyright (C) 2022–2023 Lee Yingtong Li (RunasSudo)
|
# Copyright (C) 2022–2024 Lee Yingtong Li (RunasSudo)
|
||||||
#
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU Affero General Public License as published by
|
# it under the terms of the GNU Affero General Public License as published by
|
||||||
@ -40,23 +40,23 @@ base_tax = {
|
|||||||
repayment_rates = {
|
repayment_rates = {
|
||||||
2024: [
|
2024: [
|
||||||
(51550, 0),
|
(51550, 0),
|
||||||
(59518, 0.01),
|
(59519, 0.01),
|
||||||
(63089, 0.02),
|
(63090, 0.02),
|
||||||
(66875, 0.025),
|
(66876, 0.025),
|
||||||
(70888, 0.03),
|
(70889, 0.03),
|
||||||
(75140, 0.035),
|
(75141, 0.035),
|
||||||
(79649, 0.04),
|
(79650, 0.04),
|
||||||
(84429, 0.045),
|
(84430, 0.045),
|
||||||
(89494, 0.05),
|
(89495, 0.05),
|
||||||
(94865, 0.055),
|
(94866, 0.055),
|
||||||
(100557, 0.06),
|
(100558, 0.06),
|
||||||
(106590, 0.065),
|
(106591, 0.065),
|
||||||
(112985, 0.07),
|
(112986, 0.07),
|
||||||
(119764, 0.075),
|
(119765, 0.075),
|
||||||
(126950, 0.08),
|
(126951, 0.08),
|
||||||
(134568, 0.085),
|
(134569, 0.085),
|
||||||
(142642, 0.09),
|
(142643, 0.09),
|
||||||
(151200, 0.095),
|
(151201, 0.095),
|
||||||
(None, 0.1)
|
(None, 0.1)
|
||||||
],
|
],
|
||||||
2023: [
|
2023: [
|
||||||
|
Loading…
Reference in New Issue
Block a user