Calculate input and output vat in sales and purchase entry in tally