- COPYRIGHT AND LICENSE
Business::RO::TaxDeduction - Romanian salary tax deduction calculator
use Business::RO::TaxDeduction; my $brtd = Business::RO::TaxDeduction->new( vbl => 1400, persons => 3, ); my $amount = $brtd->tax_deduction;
Romanian salary tax deduction calculator.
vbl attribute holds the input amount of the tax deduction calculation. (ro: Venit Brut Lunar).
year attribute holds the year of the tax deduction calculation.
persons attribute holds the number of persons. Not required, the default is 0.
deduction attribute holds a
Business::RO::TaxDeduction::Amount object instance.
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
Custom rounding method to the nearest integer. It uses the Romanian standard for rounding in bookkeeping.
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 <email@example.com>
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.