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

filter: Statementstmt 100% 14 / 14 Branchbran 100% 2 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod 100% 1 / 1 totaltotal 100% 21 / 21 CC 2 SCAR 3.4
CC
2
Cov
100%
is_year
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.4
« lib/Finance/Tax/Aruba/BBO.pm ↑ Summary lib/Finance/Tax/Aruba/Income/2025.pm »
1 package Finance::Tax::Aruba::Income::2020;
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 2020
7  
8 8 with qw(
9 Finance::Tax::Aruba::Role::Income::TaxYear
10 );
11  
12 8 has '+taxfree_max' => (
13 default => 28_861,
14 );
15  
16 4 ▶sub _build_tax_bracket {
Subroutine _build_tax_bracket: called CC=1 SCAR=0.0
17 return [
18 4 { min => 0, max => 34930, fixed => 0, rate => 14 },
19 {
20 min => 34930,
21 max => 65904,
22 fixed => 4890.2,
23 rate => 25
24 },
25 {
26 min => 65904,
27 max => 147454,
28 fixed => 12633.7,
29 rate => 42
30 },
31 {
32 min => 147454,
33 max => 'inf' * 1,
34 fixed => 46884.7,
35 rate => 52
36 },
37 ];
38 }
39  
40 62 ▶sub is_year {
Subroutine is_year: called CC=2 SCAR=6.9
Pod documented
41 62 my $self = shift;
42 62 ▶ return 1 if shift == 2020;
Branch: 1 branch
BranchTrueFalseTotal
if shift() == 2020 4 58 62
43 58 return 0;
44 }
45  
46  
47 8 __PACKAGE__->meta->make_immutable;
48  
49 __END__
« lib/Finance/Tax/Aruba/BBO.pm ↑ Summary lib/Finance/Tax/Aruba/Income/2025.pm »