Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Detrazione should be calculated using RAL, rather than 'Imponibile Effettiva' #40

Open
aijcoa opened this issue Dec 28, 2023 · 0 comments

Comments

@aijcoa
Copy link

aijcoa commented Dec 28, 2023

Hi, I think I noticed a miscalculation in calculator.js:809:

function calcolaDetrazioni(imponibile) {
    if (imponibile <= 15_000) {
        return 1_880;
    } else if (imponibile <= 28_000) {
        return 1_910 + 1_190 * (28_000 - imponibile) / 13_000;
    } else if (imponibile <= 50_000) {
        return 1_910 * (50_000 - imponibile) / (50_000 - 28_000);
    } else {
        return 0;
    }
}

Shouldn't the RAL be passed to this function, rather than the taxable income?

Source here: https://www.unipi.it/index.php/ritenute-detrazioni-e-trattenute/item/2145-detrazioni

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

No branches or pull requests

1 participant