calculate product