The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Finance::Tax::Aruba::Role::Income::TaxYear - A role that implements income tax logic

VERSION

version 0.009

SYNOPSIS

package Aruba::Tax::Income::XXXX;
use Moose;

with qw(Finance::Tax::Aruba::Role::Income::TaxYear);

sub _build_tax_bracket {
    return [],
}

sub is_year {
    ...;
}

DESCRIPTION

Consumers of this role must implements the following methods:

_build_tax_bracket

This should be an array reference containing the information about each bracket.

[
    { min => 0, max => 34930, fixed => 0, rate => 14 },
    {
        min   => 34930,
        max   => 65904,
        fixed => 4890.2,
        rate  => 25
    },
    {
        min   => 65904,
        max   => 147454,
        fixed => 12633.7,
        rate  => 42
    },
    {
        min   => 147454,
        max   => 'inf' * 1,
        fixed => 46884.7,
        rate  => 52
    },
];

is_year

This function should return true if the year is supported by the plugin

ATTRIBUTES

TODO: Add more documentation

AUTHOR

Wesley Schwengle <waterkip@cpan.org>

COPYRIGHT AND LICENSE

This software is Copyright (c) 2020 by Wesley Schwengle.

This is free software, licensed under:

The (three-clause) BSD License