File Coverage

blib/lib/Finance/Tax/Aruba/Income/2025.pm
Criterion Covered Total %
statement 10 13 76.9
branch 1 6 16.6
condition n/a
subroutine 4 4 100.0
pod 1 1 100.0
total 16 24 66.6


line stmt bran cond sub pod time code
1             package Finance::Tax::Aruba::Income::2025;
2             our $VERSION = '0.012';
3 7     7   268899 use Moose;
  7         422866  
  7         133  
4 7     7   58802 use namespace::autoclean;
  7         10149  
  7         104  
5              
6             # ABSTRACT: Income tax calculator for the year 2025
7              
8             with qw(
9             Finance::Tax::Aruba::Role::Income::TaxYear
10             );
11              
12             has '+taxfree_max' => (
13             default => 30_000,
14             );
15              
16             sub _build_tax_bracket {
17             return [
18 9     9   681 { min => 0, max => 34930, fixed => 0, rate => 0 },
19             {
20             min => 34930,
21             max => 63904,
22             fixed => 0,
23             rate => 21,
24             },
25             {
26             min => 63904,
27             max => 135527,
28             fixed => 6084.54,
29             rate => 42
30             },
31             {
32             min => 135527,
33             max => 'inf' * 1,
34             fixed => 36166.20,
35             rate => 52
36             },
37             ];
38             }
39              
40             sub is_year {
41 9     9 1 32 my $self = shift;
42 9         24 my $year = shift;
43 9 50       64 return 1 if $year == 2025;
44 0 0         return 1 if $year == 2024;
45 0 0         return 1 if $year == 2025;
46 0           return 0;
47             }
48              
49              
50             __PACKAGE__->meta->make_immutable;
51              
52             __END__
53              
54             =pod
55              
56             =encoding UTF-8
57              
58             =head1 NAME
59              
60             Finance::Tax::Aruba::Income::2025 - Income tax calculator for the year 2025
61              
62             =head1 VERSION
63              
64             version 0.012
65              
66             =head1 SYNOPSIS
67              
68             =head1 DESCRIPTION
69              
70             Calculate your taxes and other social premiums for the year 2025
71              
72             =head1 METHODS
73              
74             =head2 is_year
75              
76             Year selector method
77              
78             if ($module->is_year(2025)) {
79             return "year is 2025";
80             }
81              
82             =head1 SEE ALSO
83              
84             This class implements the L<Finance::Tax::Aruba::Role::Income::TaxYear> role.
85              
86             L<AB2025No.001|https://www.gobierno.aw/nl/afkondigingsbladen-2024>
87             L<AB2025No.001|https://cuatro.sim-cdn.nl/arubaoverheid2858bd/uploads/ab2025no.1.pdf>
88              
89             =head1 AUTHOR
90              
91             Wesley Schwengle <waterkip@cpan.org>
92              
93             =head1 COPYRIGHT AND LICENSE
94              
95             This software is Copyright (c) 2020 by Wesley Schwengle.
96              
97             This is free software, licensed under:
98              
99             The (three-clause) BSD License
100              
101             =cut