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

updated dividend income #20

Open
wants to merge 2 commits 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
25 changes: 25 additions & 0 deletions taxcalc/current_law_policy_cit_cambodia.json
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,31 @@
"out_of_range_maxmsg": "",
"out_of_range_action": "stop"
},
"_rate_ded_dividends": {
"long_name": "Rate at which dividend is allowed to deduct from adjusted profit ",
"description": "Rate to calculate deduction from dividend",
"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 ",
"description": "Rate to calculate maximum allowable interest expenses",
Expand Down
12 changes: 10 additions & 2 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,19 @@ 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,rate_ded_dividends, dividends, total_non_tax_inc, rent_inc, adjusted_profit ):
"""
Compute total taxable profits afer adding back non-allowable deductions.
"""
adjusted_profit = net_accounting_profit + total_additions + rent_inc + dividends*(1-rate_ded_dividends) - total_deductions - total_non_tax_inc

def Adj_profit(net_accounting_profit, total_additions, total_deductions, total_non_tax_inc, rent_inc, adjusted_profit ):
"""
Compute total taxable profits afer adding back non-allowable deductions.
"""
adjusted_profit = net_accounting_profit + total_additions + rent_inc - total_deductions - total_non_tax_inc

return adjusted_profit


Expand Down
14 changes: 13 additions & 1 deletion taxcalc/records_variables_cit_cambodia.json
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,17 @@
"cross_year": "No",
"attribute": "No"
},

"rent_inc": {
"type": "float",
"desc": "Interest income",
"form": {
"2022": "Field g3 - Form TOI 01"
},
"cross_year": "No",
"attribute": "No"
},

"rent_inc": {
"type": "float",
"desc": "rental income",
Expand Down Expand Up @@ -531,7 +542,8 @@
"desc": "Deductions for charitable contributions allowed as per tax law",
"form": {
"2022": "Field f5 - Form TOI 01"
}
}

},
"non_ded_charity": {
"type": "float",
Expand Down