I create a Report related to Project transactions; Following is a dummy implementation of that. I create two separate reports to calculate Income and Expenses, then embedded two reports in main report and calculated difference between income and expense. when i print the Income value and Expense value in the main report it printed some value. but when i calculate the difference using same variables it gives unexpected values.
Result
![](https://uploads-us-west-2.insided.com/acumatica-en/attachment/cb8159d1-ea62-4479-a489-9dfe9b3e18c2.png)
Report design:
![](https://uploads-us-west-2.insided.com/acumatica-en/attachment/96e345a3-cc04-43df-81c5-61776f3ebf21.png)
Formular:
= $MonthlyExpenseRp_totalExpenses - $MonthlyIncomeRp_totalIncome
i tried different formulars like,
= CInt($MonthlyExpenseRp_totalExpenses) - CInt($MonthlyIncomeRp_totalIncome)
but any of them did not works