calc total after deduction