Calculating taxable income has little to do with accounting rules. Tax rules are quite different from accounting rules and and they often differ from one country to another. You should check out your country's tax statue for rules of arriving at the taxable profit.