calculation for Gross profit