calculation of FLOPS