Calculating deductions and net income