Created
March 18, 2025 03:01
-
-
Save egouldo/e16e90b73becfe3ab590d5c904cede56 to your computer and use it in GitHub Desktop.
Calculate jobseeker payment reduction
This file contains hidden or 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
payment_reduction <- | |
function(income, | |
brackets = c(150, 256, 1479, Inf), | |
rates = c(0, .5, .6, 1)) { | |
sum(diff(c(0, pmin(income, brackets))) * rates) | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment