Business::RO::TaxDeduction - Romanian salary tax deduction calculator
version 0.012
use Business::RO::TaxDeduction; my $brtd = Business::RO::TaxDeduction->new( vbl => 1400, persons => 3, ); my $amount = $brtd->tax_deduction;
Romanian salary tax deduction calculator.
The vbl attribute holds the input amount of the tax deduction calculation. (ro: Venit Brut Lunar).
vbl
The year attribute holds the year of the tax deduction calculation.
year
The persons attribute holds the number of persons. Not required, the default is 0.
persons
The deduction attribute holds a Business::RO::TaxDeduction::Amount object instance.
deduction
Business::RO::TaxDeduction::Amount
A Math::BigFloat object instance for 10.
A Math::BigFloat object instance for 5.
Return the deduction calculated for the given amount.
Starting with the current version (0.004) the appropriate algorithm for the tax deduction calculation year is chosen.
Formula for calculating the tax deduction for amounts above vbl_min and less or equal to vbl_max.
vbl_min
vbl_max
Custom rounding method to the nearest integer. It uses the Romanian standard for rounding in bookkeeping.
Example:
10.01 -:- 10.49 => 10 10.50 -:- 10.99 => 11
Round up to tens. Uses Math::BigFloat to prevent rounding errors like when amount minus floor(amount) gives something like 7.105427357601e-15.
Ștefan Suciu <stefan@s2i2.ro>
This software is copyright (c) 2018 by Ștefan Suciu.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Business::RO::TaxDeduction, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Business::RO::TaxDeduction
CPAN shell
perl -MCPAN -e shell install Business::RO::TaxDeduction
For more information on module installation, please visit the detailed CPAN module installation guide.