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
|
||||
|
||||
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())
|
||||
|
||||
@assert_aud
|
||||
|
@ -1,5 +1,5 @@
|
||||
# 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
|
||||
# it under the terms of the GNU Affero General Public License as published by
|
||||
@ -40,23 +40,23 @@ base_tax = {
|
||||
repayment_rates = {
|
||||
2024: [
|
||||
(51550, 0),
|
||||
(59518, 0.01),
|
||||
(63089, 0.02),
|
||||
(66875, 0.025),
|
||||
(70888, 0.03),
|
||||
(75140, 0.035),
|
||||
(79649, 0.04),
|
||||
(84429, 0.045),
|
||||
(89494, 0.05),
|
||||
(94865, 0.055),
|
||||
(100557, 0.06),
|
||||
(106590, 0.065),
|
||||
(112985, 0.07),
|
||||
(119764, 0.075),
|
||||
(126950, 0.08),
|
||||
(134568, 0.085),
|
||||
(142642, 0.09),
|
||||
(151200, 0.095),
|
||||
(59519, 0.01),
|
||||
(63090, 0.02),
|
||||
(66876, 0.025),
|
||||
(70889, 0.03),
|
||||
(75141, 0.035),
|
||||
(79650, 0.04),
|
||||
(84430, 0.045),
|
||||
(89495, 0.05),
|
||||
(94866, 0.055),
|
||||
(100558, 0.06),
|
||||
(106591, 0.065),
|
||||
(112986, 0.07),
|
||||
(119765, 0.075),
|
||||
(126951, 0.08),
|
||||
(134569, 0.085),
|
||||
(142643, 0.09),
|
||||
(151201, 0.095),
|
||||
(None, 0.1)
|
||||
],
|
||||
2023: [
|
||||
|
Loading…
Reference in New Issue
Block a user