make computation of sales and profit​