Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ded_div_rate #18

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 26 additions & 2 deletions taxcalc/current_law_policy_cit_cambodia.json
Original file line number Diff line number Diff line change
Expand Up @@ -248,8 +248,7 @@
"out_of_range_minmsg": "",
"out_of_range_maxmsg": "",
"out_of_range_action": "stop"
},

},
"_rate_ded_charity": {
"long_name": "Rate at which charitable contributions are capped as percentage of adjusted profit ",
"description": "Rate to calculate maximum allowable charitable expenses",
Expand All @@ -274,6 +273,31 @@
"out_of_range_minmsg": "",
"out_of_range_maxmsg": "",
"out_of_range_action": "stop"
},
"_rate_ded_dividend": {
"long_name": "Rate at which dividends is allow to deducted of adjusted profit ",
"description": "Rate to calculate allowable dividends expenses",
"itr_ref": "Tax Law",
"notes": "",
"row_var": "Year",
"row_label": [
"2022"
],
"start_year": 2022,
"cpi_inflatable": false,
"cpi_inflated": false,
"col_var": "Value",
"col_label": ["Value"],
"boolean_value": false,
"integer_value": false,
"value": [0.5],
"range": {
"min": 0.0,
"max": 1.0
},
"out_of_range_minmsg": "",
"out_of_range_maxmsg": "",
"out_of_range_action": "stop"
},
"_rate_int_ded": {
"long_name": "Rate at which interest expenses are allowed as percentage of non-interest income ",
Expand Down
8 changes: 4 additions & 4 deletions taxcalc/functions_cit_cambodia.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,11 +205,11 @@ def Total_deductions(total_depr, dec_provision, loss_disposal, other_ded_exp, to


@iterate_jit(nopython=True)
def Total_non_tax_inc(dividends, capgain_disp_assets, other_inc, total_non_tax_inc):
def Total_non_tax_inc(capgain_disp_assets, other_inc, total_non_tax_inc):
"""
Compute total taxable profits afer adding back non-allowable deductions.
"""
total_non_tax_inc = dividends + capgain_disp_assets + other_inc
total_non_tax_inc = capgain_disp_assets + other_inc
return total_non_tax_inc


Expand All @@ -220,11 +220,11 @@ def Total_non_tax_inc(dividends, capgain_disp_assets, other_inc, total_non_tax_i
'''

@iterate_jit(nopython=True)
def Adj_profit(net_accounting_profit, total_additions, total_deductions, total_non_tax_inc, adjusted_profit ):
def Adj_profit(net_accounting_profit, total_additions, total_deductions, rate_ded_dividend, dividends, total_non_tax_inc, adjusted_profit ):
"""
Compute total taxable profits afer adding back non-allowable deductions.
"""
adjusted_profit = net_accounting_profit + total_additions - total_deductions - total_non_tax_inc
adjusted_profit = net_accounting_profit + total_additions + dividends*(1-rate_ded_dividend)- total_deductions - total_non_tax_inc
return adjusted_profit


Expand Down