lib/Finance/Tax/Aruba/Income/2023.pm

filter: Statementstmt 100% 16 / 16 Branchbran 100% 4 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod 100% 1 / 1 totaltotal 100% 25 / 25 CC 3 SCAR 6.9
CC
3
Cov
100%
is_year
3.0
BEGIN
1.0
BEGIN
1.0
CRAP 2.0
« lib/Finance/Tax/Aruba/Income/2021.pm ↑ Summary lib/Finance/Tax/Aruba/BBO/2020.pm »
1 package Finance::Tax::Aruba::Income::2023;
2 8 our $VERSION = '0.014';
3 8 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 8 ▶use namespace::autoclean;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 # ABSTRACT: Income tax calculator for the year 2023
7  
8 8 with qw(
9 Finance::Tax::Aruba::Role::Income::TaxYear
10 );
11  
12 8 has '+taxfree_max' => (
13 default => 30_000,
14 );
15  
16 18 ▶sub _build_tax_bracket {
Subroutine _build_tax_bracket: called CC=1 SCAR=0.0
17 return [
18 18 { min => 0, max => 34930, fixed => 0, rate => 10 },
19 {
20 min => 34930,
21 max => 63904,
22 fixed => 3493,
23 rate => 21,
24 },
25 {
26 min => 63904,
27 max => 135527,
28 fixed => 9577.50,
29 rate => 42
30 },
31 {
32 min => 135527,
33 max => 'inf' * 1,
34 fixed => 39659.20,
35 rate => 52
36 },
37 ];
38 }
39  
40 46 ▶sub is_year {
Subroutine is_year: called CC=3 SCAR=11.0
Pod documented
41 46 my $self = shift;
42 46 my $year = shift;
43 46 ▶ return 1 if $year == 2023;
Branch: 1 branch
BranchTrueFalseTotal
if $year == 2023 9 37 46
44 37 ▶ return 1 if $year == 2024;
Branch: 1 branch
BranchTrueFalseTotal
if $year == 2024 9 28 37
45 28 return 0;
46 }
47  
48  
49 8 __PACKAGE__->meta->make_immutable;
50  
51 __END__
« lib/Finance/Tax/Aruba/Income/2021.pm ↑ Summary lib/Finance/Tax/Aruba/BBO/2020.pm »